You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A string description of the rollback operation. Required if the Linked DB's config.require_commit_descs is active.
Usage
Create savepoints:
// Perform a DDL operation and obtain savepoint (1)constsavepoint1=awaitclient.createDatabase({name: 'database_1',tables: [{name: 'table_1',columns: [],}]},{desc: 'Create description',returning: 'savepoint'});// Perform a DDL operation and obtain savepoint (2)constsavepoint2=awaitclient.database('database_1').createTable({name: 'table_2',columns: [],},{desc: 'Create description',returning: 'savepoint'});
Rollback all changes (latest-first):
// Rollback to version 1 (drops table)awaitsavepoint2.rollback({desc: 'Changes no more necessary'});// Rollback to version 0 (drops database)awaitsavepoint1.rollback({desc: 'Changes no more necessary'});