method UnitOfWork.prototype.rollback
UnitOfWork.prototype.rollback(): Promise<void>

Roll back the transaction. Called automatically by DatabaseService on errors, but can also be called explicitly.

Return Type

Promise<void>

Throws

Error

If already committed or rolled back

Usage

import { UnitOfWork } from "database-plugin/src/index.ts";