postgrelize / HasManyRemoveAssociationMixinOptions
Interface: HasManyRemoveAssociationMixinOptions ​
Defined in: src/associations/mixin-types.ts:164
Options of the removeX accessor of a hasMany association (Sequelize v6).
Example ​
const options: HasManyRemoveAssociationMixinOptions = { transaction };Extends ​
Properties ​
benchmark? ​
optionalbenchmark?:boolean
Defined in: src/model/runtime.ts:17
Pass query duration to the logger.
Inherited from ​
InstanceUpdateOptions.benchmark
fields? ​
optionalfields?: readonlyany[]
Defined in: src/model/write-options.ts:24
Attributes to save; others are ignored. Default: all changed attributes. Mutable so hooks can adjust it, as in v6.
Inherited from ​
InstanceUpdateOptions.fields
hooks? ​
optionalhooks?:boolean
Defined in: src/model/write-options.ts:34
Run lifecycle hooks.
Default Value ​
trueInherited from ​
InstanceUpdateOptions.hooks
logging? ​
optionallogging?:false|LoggingFunction
Defined in: src/model/runtime.ts:15
SQL logger for this query, or false.
Inherited from ​
InstanceUpdateOptions.logging
overriding? ​
optionaloverriding?:"user"|"system"
Defined in: src/model/write-options.ts:42
postgrelize extensionOVERRIDING SYSTEM VALUE / OVERRIDING USER VALUE for identity columns. PostgreSQL extension.
Inherited from ​
InstanceUpdateOptions.overriding
replacements? ​
optionalreplacements?:Replacements
Defined in: src/model/runtime.ts:43
Values of ? (array) or :name (object) placeholders written in raw SQL inside the options (where: literal('"a" = :a'), attributes: [[literal(...), 'x']]), as in Sequelize v6. Every value is sent as a bound parameter, never concatenated into the SQL text; arrays expand to a comma separated list of parameters.
Inherited from ​
InstanceUpdateOptions.replacements
retry? ​
optionalretry?:Readonly<{backoffBase?:number;backoffExponent?:number;backoffJitter?:number;match?: readonlyRetryMatch[];max?:number;name?:string;report?: (message,options,error?) =>void;timeout?:number; }>
Defined in: src/model/runtime.ts:31
Retries this query when it fails, merged over the instance retry option (Sequelize v6). The connection acquisition is part of the retried work; a query that runs in a transaction is never retried.
Inherited from ​
InstanceUpdateOptions.retry
returning? ​
optionalreturning?:boolean
Defined in: src/model/write-options.ts:31
Return all columns after insert/update; PostgreSQL always uses RETURNING, so this is accepted for v6 compatibility.
Default Value ​
trueInherited from ​
InstanceUpdateOptions.returning
silent? ​
optionalsilent?:boolean
Defined in: src/model/write-options.ts:28
Do not update updatedAt.
Default Value ​
falseInherited from ​
InstanceUpdateOptions.silent
statementTimeout? ​
optionalstatementTimeout?:number
Defined in: src/model/runtime.ts:25
postgrelize extensionstatement_timeout for this query only, in milliseconds (non-negative integer; 0 disables it). PostgreSQL cancels the statement with a DatabaseError (code 57014) when it runs longer. Outside a transaction the query runs in its own short transaction; inside one the previous timeout is restored afterwards. PostgreSQL extension.
Inherited from ​
InstanceUpdateOptions.statementTimeout
transaction? ​
optionaltransaction?:Transaction|null
Defined in: src/model/runtime.ts:13
Transaction to run in; null forces running outside the CLS transaction.
Inherited from ​
InstanceUpdateOptions.transaction
useMaster? ​
optionaluseMaster?:boolean
Defined in: src/model/runtime.ts:36
postgrelize extensionForce the writer even for SELECTs when read replicas are configured. postgrelize extension.
Inherited from ​
InstanceUpdateOptions.useMaster
validate? ​
optionalvalidate?:boolean
Defined in: src/model/write-options.ts:37
Run validations.
Default Value ​
true (false for bulkCreate)
Inherited from ​
InstanceUpdateOptions.validate