module RethinkORM::Settings

Included Modules

Defined in:

rethinkdb-orm/settings.cr

Constant Summary

HABITAT_SETTINGS = [{decl: host : String = ENV["RETHINKDB_HOST"]? || "localhost", example: nil, validation: nil}, {decl: port : Int32 = (ENV["RETHINKDB_PORT"]? || 28015).to_i, example: nil, validation: nil}, {decl: db : String = (ENV["RETHINKDB_DB"]? || ENV["RETHINKDB_DATABASE"]?) || "test", example: nil, validation: nil}, {decl: user : String = ENV["RETHINKDB_USER"]? || "admin", example: nil, validation: nil}, {decl: password : String = ENV["RETHINKDB_PASSWORD"]? || "", example: nil, validation: nil}, {decl: retry_interval : Time::Span = (ENV["RETHINKDB_TIMEOUT"]? || 2).to_i.seconds, example: nil, validation: nil}, {decl: retry_attempts : Int32 = ENV["RETHINKDB_RETRIES"]?.try(&.to_i) || 10, example: nil, validation: nil}, {decl: query_retries : Int32 = ENV["RETHINKDB_QUERY_RETRIES"]?.try(&.to_i) || 10, example: nil, validation: nil}, {decl: lock_expire : Time::Span = (ENV["RETHINKDB_LOCK_EXPIRE"]? || 30).to_i.seconds, example: nil, validation: nil}, {decl: lock_timeout : Time::Span = (ENV["RETHINKDB_LOCK_TIMEOUT"]? || 5).to_i.seconds, example: nil, validation: nil}] of Nil

Class Method Summary

Instance Method Summary

Class Method Detail

def self.configure(&) #

[View source]
def self.settings #

[View source]

Instance Method Detail

def settings #

[View source]