class Crorm::PGX

Included Modules

Defined in:

crorm/adapter.cr

Constant Summary

Log = ::Log.for("crorm_pgx")

Constructors

Instance Method Summary

Instance methods inherited from module Crorm::DBX

exec(query : String, *args_, args : Array | Nil = nil) exec, exec_all(query : String, delimiter = ";") exec_all, init_db init_db, open_ro(&block : DBS -> ) open_ro, open_rw(&block : DBS -> ) open_rw, open_tx(&) open_tx, query_all(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) query_all, query_one(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) query_one, query_one?(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) query_one?, write_all(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) write_all, write_one(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) write_one

Constructor Detail

def self.new(db_url : String, use_pool = false) #

[View source]
def self.new(db : DB::Connection | DB::Database) #

[View source]

Instance Method Detail

def db : DBS #

[View source]
def finalize #

[View source]
def open_ro : DB::Database #

[View source]
def open_ro(&) #

[View source]
def open_rw : DB::Database #

[View source]
def open_rw(&) #

[View source]