module Granite::Integrators
Included Modules
Defined in:
granite/integrators.crInstance Method Summary
Instance methods inherited from module Granite::Querying
all(clause = "", params = [] of Granite::Columns::Type)
all,
count : Int32
count,
exec(clause = "")
exec,
exists?(id : Number | String | Nil) : Boolexists?(criteria : Granite::ModelArgs) : Bool
exists?(**criteria : Granite::Columns::Type) : Bool exists?, find(value) find, find!(value) find!, find_by(criteria : Granite::ModelArgs)
find_by(**criteria : Granite::Columns::Type) find_by, find_by!(criteria : Granite::ModelArgs)
find_by!(**criteria : Granite::Columns::Type) find_by!, find_each(clause = "", params = [] of Granite::Columns::Type, batch_size limit = 100, offset = 0, &) find_each, find_in_batches(clause = "", params = [] of Granite::Columns::Type, batch_size limit = 100, offset = 0, &) find_in_batches, first(clause = "", params = [] of Granite::Columns::Type) first, first!(clause = "", params = [] of Granite::Columns::Type) first!, from_rs(result : DB::ResultSet) : self from_rs, query(clause = "", params = [] of Granite::Columns::Type, &) query, raw_all(clause = "", params = [] of Granite::Columns::Type) raw_all, scalar(clause = "", &) scalar
Instance methods inherited from module Granite::Transactions::ClassMethods
clear
clear,
create(args : Granite::ModelArgs)create(**args) create, create!(args : Granite::ModelArgs)
create!(**args) create!, import(model_array : Array(self) | Granite::Collection(self), update_on_duplicate : Bool, columns : Array(String), batch_size : Int32 = model_array.size)
import(model_array : Array(self) | Granite::Collection(self), batch_size : Int32 = model_array.size)
import(model_array : Array(self) | Granite::Collection(self), ignore_on_duplicate : Bool, batch_size : Int32 = model_array.size) import