module Crorm::DBX

Direct including types

Defined in:

crorm/adapter.cr

Instance Method Summary

Instance Method Detail

def exec(query : String, *args_, args : Array | Nil = nil) #

[View source]
def exec_all(query : String, delimiter = ";") #

[View source]
def init_db #

[View source]
abstract def open_ro(&block : DBS -> ) #

[View source]
abstract def open_rw(&block : DBS -> ) #

[View source]
def open_tx(&) #

[View source]
def query_all(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) #

[View source]
def query_one(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) #

[View source]
def query_one?(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) #

[View source]
def write_all(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) #

[View source]
def write_one(query : String, *args_, args : Array | Nil = nil, as as_type : Tuple | NamedTuple | Class) #

[View source]