Optional
benchmarkPass query execution time in milliseconds as second argument to logging function (options.logging).
Optional
fieldsFields to insert (defaults to all fields)
Optional
hooksIf false
the applicable hooks will not be called.
The default value depends on the context.
true
Optional
ignoreIgnore duplicate values for primary keys?
false
Optional
includeInclude options. See find
for details
Optional
individualRun before / after create hooks for each individual Instance? BulkCreate hooks will still be run if hooks is true.
false
Optional
loggingA function that gets executed while running the query to log the sql.
Optional
returningReturn all columns or only the specified columns for the affected rows (only for postgres)
Optional
searchAn optional parameter to specify the schema search_path (Postgres only)
Optional
transactionThe transaction in which this query must be run.
If CLS is enabled and a transaction is running in the current CLS context, that transaction will be used, unless null or a Transaction is manually specified here.
Optional
updateFields to update if row key already exists (on duplicate key update)? (only supported by MySQL, MariaDB, SQLite >= 3.24.0 & Postgres >= 9.5).
Optional
validateShould each row be subject to validation before it is inserted. The whole insert will fail if one row fails validation
false
Generated using TypeDoc
Options for Model.bulkCreate method