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::
SQ3
Crorm::SQ3
Reference
Object
Included Modules
Crorm::DBX
Defined in:
crorm/adapter.cr
Constant Summary
Log
=
::
Log
.
for
(
"crorm_sq3"
)
Constructors
.new
(db_path : String, &)
.new
(db_path : String, init_sql : String =
""
)
Instance Method Summary
#db_path
: String
#init_db
(sql : String)
#open_ro
: DBS
#open_ro
(&)
#open_rw
: DBS
#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_path : String, &)
#
[
View source
]
def self.
new
(db_path : String, init_sql : String =
""
)
#
[
View source
]
Instance Method Detail
def
db_path
: String
#
[
View source
]
def
init_db
(sql : String)
#
[
View source
]
def
open_ro
:
DBS
#
[
View source
]
def
open_ro
(&)
#
[
View source
]
def
open_rw
:
DBS
#
[
View source
]
def
open_rw
(&)
#
[
View source
]