Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
crorm
v0.4.2
Crorm
DBX
DBS
Model
DB_
PGX
Schema
Dialect
SQ3
Built with Crystal 1.10.0
2023-10-29 04:38:26 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, init_sql : String =
""
)
Instance Method Summary
#db_path
: 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
,
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, init_sql : String =
""
)
#
[
View source
]
Instance Method Detail
def
db_path
: 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
]