BulkInsertResult¶
struct
Defined in src/ralph/bulk_operations.cr:5
Result of a bulk insert operation
Contains information about the inserted records, including IDs if available.
Constructors¶
.new(count : Int32, ids : Array(Int64) = [] of Int64)¶
Instance Methods¶
#count¶
Number of records inserted
#ids¶
IDs of inserted records (only available on PostgreSQL with RETURNING clause) For SQLite, this will be empty as SQLite doesn't support RETURNING for multi-row inserts