Options used for Model.update
Pass query execution time in milliseconds as second argument to logging function (options.logging).
The connection on which this query must be run. Mutually exclusive with Transactionable.transaction.
Can be used to ensure that a query is run on the same connection as a previous query, which is useful when configuring session options.
Specifying this option takes precedence over CLS Transactions. If a transaction is running in the current AsyncLocalStorage context, it will be ignored in favor of the specified connection.
Fields to update (defaults to all fields)
false the applicable hooks will not be called.
The default value depends on the context.
Run before / after update hooks?. If true, this will execute a SELECT followed by individual UPDATEs. A select is needed, because the row data needs to be passed to the hooks
How many rows to update
Only for mysql and mariadb, Implemented as TOP(n) for MSSQL; for sqlite it is supported only when rowid is present
A function that gets executed while running the query to log the sql.
If true, only non-deleted records will be returned. If false, both deleted and non-deleted records will be returned.
Only applies if InitOptions.paranoid is true for the model.
Return the affected rows (only for postgres)
Whether to update the side effects of any virtual setters.
If true, the updatedAt timestamp will not be updated.
The transaction in which this query must be run. Mutually exclusive with Transactionable.connection.
If Options.disableClsTransactions has not been set to true, and a transaction is running in the current AsyncLocalStorage context, that transaction will be used, unless null or another Transaction is manually specified here.
Should each row be subject to validation before it is inserted. The whole insert will fail if one row fails validation.
Options to describe the scope of the search.
Generated using TypeDoc