Page Contents

Home > @loopback/sequelize > SequelizeDataSource > beginTransaction

SequelizeDataSource.beginTransaction() method

Begin a new transaction.

Signature:

beginTransaction(options?: TransactionOptions | TransactionOptions['isolationLevel']): Promise<Transaction>;

Parameters

Parameter Type Description
options TransactionOptions | TransactionOptions[‘isolationLevel’] (Optional) Options {isolationLevel: ‘…’}

Returns:

Promise<Transaction>

A promise which resolves to a Sequelize Transaction object