Skip to content

postgrelize / BelongsToManyRemoveAssociationMixinOptions

Interface: BelongsToManyRemoveAssociationMixinOptions ​

Defined in: src/associations/mixin-types.ts:301

Options of the removeX accessor of a belongsToMany association (Sequelize v6).

Example ​

ts
const options: BelongsToManyRemoveAssociationMixinOptions = { transaction };

Extends ​

Properties ​

benchmark? ​

optional benchmark?: boolean

Defined in: src/model/runtime.ts:17

Pass query duration to the logger.

Inherited from ​

InstanceDestroyOptions.benchmark


force? ​

optional force?: boolean

Defined in: src/model/bulk-options.ts:195

For paranoid models: delete the row instead of setting deletedAt.

Default Value ​

ts
false

Inherited from ​

InstanceDestroyOptions.force


hooks? ​

optional hooks?: boolean

Defined in: src/model/bulk-options.ts:198

Run beforeDestroy / afterDestroy hooks.

Default Value ​

ts
true

Inherited from ​

InstanceDestroyOptions.hooks


logging? ​

optional logging?: false | LoggingFunction

Defined in: src/model/runtime.ts:15

SQL logger for this query, or false.

Inherited from ​

InstanceDestroyOptions.logging


replacements? ​

optional replacements?: 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 ​

InstanceDestroyOptions.replacements


retry? ​

optional retry?: Readonly<{ backoffBase?: number; backoffExponent?: number; backoffJitter?: number; match?: readonly RetryMatch[]; 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 ​

InstanceDestroyOptions.retry


statementTimeout? ​

optional statementTimeout?: number

Defined in: src/model/runtime.ts:25

postgrelize extension

statement_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 ​

InstanceDestroyOptions.statementTimeout


transaction? ​

optional transaction?: Transaction | null

Defined in: src/model/runtime.ts:13

Transaction to run in; null forces running outside the CLS transaction.

Inherited from ​

InstanceDestroyOptions.transaction


useMaster? ​

optional useMaster?: boolean

Defined in: src/model/runtime.ts:36

postgrelize extension

Force the writer even for SELECTs when read replicas are configured. postgrelize extension.

Inherited from ​

InstanceDestroyOptions.useMaster

Released under the MIT License.