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
- core/backend/src/SQLiteDb.ts Line 224
Last Updated: 13 May, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.