module PgORM::Settings
Included Modules
- Habitat::SettingsHelpers
- Habitat::TempConfig
Defined in:
pg-orm/settings.cr
Constant Summary
-
HABITAT_SETTINGS =
[{decl: host : String = ENV["PG_HOST"]? || "localhost", example: nil, validation: nil}, {decl: port : Int32 = (ENV["PG_PORT"]? || 5432).to_i, example: nil, validation: nil}, {decl: db : String = (ENV["PG_DB"]? || ENV["PG_DATABASE"]?) || "test", example: nil, validation: nil}, {decl: user : String = ENV["PG_USER"]? || "postgres", example: nil, validation: nil}, {decl: password : String = ENV["PG_PASSWORD"]? || "", example: nil, validation: nil}, {decl: query : String = ENV["PG_QUERY"]? || "", example: nil, validation: nil}, {decl: lock_timeout : Time::Span = (ENV["PG_LOCK_TIMEOUT"]? || 5).to_i.seconds, example: nil, validation: nil}] of Nil
Class Method Summary
Instance Method Summary
Class Method Detail
def self.
parse(uri : String | URI)
#
def self.
to_uri : String
#
Instance Method Detail