struct DB::SessionMethods::UnpreparedQuery(Session, Stmt)

Included Modules

Defined in:

db/session_methods.cr

Constructors

Instance Method Summary

Instance methods inherited from module DB::QueryMethods

exec(query, *args) exec, query(query, *args)
query(query, *args, &block)
query
, query_all(query, *args, as type : Class)
query_all(query, *args, as types : NamedTuple)
query_all(query, *args, &block : ResultSet -> U) : Array(U) forall U
query_all(query, *args, as types : Tuple)
query_all
, query_each(query, *args, &block) query_each, query_one(query, *args, &block : ResultSet -> U) : U forall U
query_one(query, *args, as types : Tuple)
query_one(query, *args, as types : NamedTuple)
query_one(query, *args, as type : Class)
query_one
, query_one?(query, *args, as type : Class)
query_one?(query, *args, as types : NamedTuple)
query_one?(query, *args, as types : Tuple)
query_one?(query, *args, &block : ResultSet -> U) : U? forall U
query_one?
, scalar(query, *args) scalar

Constructor Detail

def self.new(session : Session) #

[View source]

Instance Method Detail

def build(query) : Stmt #

[View source]