Optional
benchmarkOptional
conflictOptional override for the conflict fields in the ON CONFLICT part of the query. Only supported in Postgres >= 9.5 and SQLite >= 3.24.0
Optional
conflictAn optional parameter to specify a where clause for partial unique indexes
(note: ON CONFLICT WHERE
not ON CONFLICT DO UPDATE WHERE
).
Only supported in Postgres >= 9.5 and sqlite >= 9.5
Optional
creatableOptional
fieldsFields to insert (defaults to all fields)
Optional
hooksIf false
the applicable hooks will not be called.
The default value depends on the context.
Optional
ignoreIgnore duplicate values for primary keys?
false
Optional
includeInclude options. See find
for details
Optional
nested?: trueOptional
individualRun before / after create hooks for each individual Instance? BulkCreate hooks will still be run if options.hooks is true.
Optional
loggingA function that gets executed while running the query to log the sql.
Optional
timing: numberOptional
middlewareOptional
pathOptional
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
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
Pass query execution time in milliseconds as second argument to logging function (options.logging).