Function beginWork
Parameters
Optionaloptions: WorkOptions
Returns Promise<WorkObject>
An AsyncDisposable work object that can be used with 'await using' to automatically rollback the work if not yet committed
Optionaloptions: WorkOptionsAn AsyncDisposable work object that can be used with 'await using' to automatically rollback the work if not yet committed
Begins a new transaction. Throws when a transaction is already in progress