- Preparing search index...
- The search index is not available
biorate
Constructors
constructor
- new Transaction(sequelize, options): Transaction
-
Accessors
LOCK
- get LOCK(): typeof LOCK
-
Returns typeof LOCK
Static
LOCK
- get LOCK(): typeof LOCK
-
Returns typeof LOCK
Methods
afterCommit
- afterCommit(fn): void
-
Parameters
-
fn: ((transaction) => void | Promise<void>)
-
- (transaction): void | Promise<void>
-
Returns void | Promise<void>
Returns void
commit
- commit(): Promise<void>
-
Returns Promise<void>
rollback
- rollback(): Promise<void>
-
Returns Promise<void>
The transaction object is used to identify a running transaction. It is created by calling
Sequelize.transaction()
.To run a query under a transaction, you should pass the transaction in the options object.