- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 2
savepoint.commitDesc()
        Oxford Harrison edited this page Nov 15, 2024 
        ·
        2 revisions
      
    DOCS • API • Savepoint API
Get the Savepoint's commit description. This returns the description originally passed along with the DDL operation that created the savepoint, or if having been rolled back and recommitted, the description passed along with last recommit operation (savepoint.recommit()).
See related ➞
savepoint.rollbackDesc()
savepoint.commitDesc(): string;// Why was savepoint committed?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitDesc()); // 'Created products table'