class RethinkORM::Connection

Included Modules

Defined in:

rethinkdb-orm/connection.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}] of Nil

Class Method Summary

Instance Method Summary

Class Method Detail

def self.configure(&) #

[View source]
def self.db #

[View source]
def self.raw(&) #

Passes the query builder to the block.

Auto creates the database if its not already present. The block defined query is run and raw results returned.


[View source]
def self.raw_json(json : String, &) #

Passes query builder and datum term of supplied raw json string


[View source]
def self.settings #

[View source]

Instance Method Detail

def settings #

[View source]