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

Commit the transaction. Must be called after all operations complete.

Return Type

Promise<void>

Throws

Error

If already committed or rolled back

Usage

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