withSavePoint Method

Perform an operation on this database within a savepoint. If the operation completes successfully, the changes remain in the current transaction. If the operation throws an exception, the savepoint is rolled back and all changes to the database from this method are reversed, leaving the transaction exactly as it was before this method.

withSavePoint(savePointName: string, operation: () => void): void

Parameter Type Description
savePointName string  
operation () => void  

Returns - void

Defined in

Last Updated: 16 May, 2024