Interface InstanceDestroyOptions

Options used for Instance.destroy method

Hierarchy

Properties

benchmark?: boolean

Pass query execution time in milliseconds as second argument to logging function (options.logging).

force?: boolean

If set to true, paranoid models will actually be deleted

hooks?: boolean

If false the applicable hooks will not be called. The default value depends on the context.

Default

true

logging?: boolean | ((sql: string, timing?: number) => void)

A function that gets executed while running the query to log the sql.

transaction?: null | Transaction

The 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.

Generated using TypeDoc