Skip to main content

Module crud_batch_create

Module crud_batch_create 

Source
Expand description

Test batch creation of models

Modules§

batch_create_with_null_field

Functions§

batch_create_document_columns
Native json/jsonb columns hold a document per row, so they must not be transposed into a per-column array bind: PostgreSQL has no array type registered for either, and binding one panics the driver.
batch_create_empty
batch_create_fails_if_any_record_missing_fields
batch_create_inside_transaction_uses_savepoints
Multi-row batch inside an explicit transaction executes as a single INSERT without extra savepoint wrapping (the statement is inherently atomic).
batch_create_many
batch_create_many_auto_increment
batch_create_many_auto_increment_requires_returning
batch_create_model_with_unique_field_index_all_dups
batch_create_model_with_unique_field_index_all_unique
batch_create_one
batch_create_unique_violation_rolls_back
Unique constraint violation on a multi-row batch is atomic because a single INSERT statement is inherently atomic in SQL databases.
batch_create_uses_unnest_array_params