Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crorm
v0.5.0
Crorm
DBX
DBS
Model
DB_
PGX
Schema
Dialect
SQ3
Generated using Crystal 1.12.2
2024-07-11 06:33:01 UTC
class
Crorm::
PGX
Crorm::PGX
Reference
Object
Included Modules
Crorm::DBX
Defined in:
crorm/adapter.cr
Constant Summary
Log
=
::
Log
.
for
(
"crorm_pgx"
)
Constructors
.new
(db_url : String, use_pool =
false
)
.new
(db : DB::Connection | DB::Database)
Instance Method Summary
#db
: DBS
#finalize
#open_ro
: DB::Database
#open_ro
(&)
#open_rw
: DB::Database
#open_rw
(&)
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
]