module Granite::Transactions::ClassMethods
Direct including types
Defined in:
granite/transactions.crInstance Method Summary
- #clear
- #create(args : Granite::ModelArgs)
- #create(**args)
- #create!(args : Granite::ModelArgs)
- #create!(**args)
- #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)
The import class method will run a batch INSERT statement for each model in the array the array must contain only one model class invalid model records will be skipped
- #import(model_array : Array(self) | Granite::Collection(self), ignore_on_duplicate : Bool, batch_size : Int32 = model_array.size)
Instance Method Detail
def import(model_array : Array(self) | Granite::Collection(self), update_on_duplicate : Bool, columns : Array(String), batch_size : Int32 = model_array.size)
#
def import(model_array : Array(self) | Granite::Collection(self), batch_size : Int32 = model_array.size)
#
The import class method will run a batch INSERT statement for each model in the array the array must contain only one model class invalid model records will be skipped
def import(model_array : Array(self) | Granite::Collection(self), ignore_on_duplicate : Bool, batch_size : Int32 = model_array.size)
#