Skip to content

BulkInsertResult

struct

Defined in src/ralph/bulk_operations.cr:9

Result of a bulk insert operation

Contains information about the inserted records, including IDs if available.

Constructors

.new(count : Int32, ids : Array(BulkOperationId) = [] of BulkOperationId)

View source


Instance Methods

#count

View source

Number of records inserted


#ids

View source

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 Returns String for UUID columns, Int64 for integer columns