Skip to content

savepoint.commitDesc()

Oxford Harrison edited this page Nov 15, 2024 · 2 revisions

DOCSAPISavepoint 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()

Syntax

savepoint.commitDesc(): string;

Usage

// Why was savepoint committed?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitDesc()); // 'Created products table'
Clone this wiki locally