Skip to content

savepoint.commitDate()

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

DOCSAPISavepoint API


Get the Savepoint's commit date. This returns the date and time of the DDL operation that created the savepoint, or if having been rolled back and recommitted, the date and time of last recommit operation (savepoint.recommit()).

See related ➞ savepoint.rollbackDate()

Syntax

savepoint.commitDate(): Date;

Usage

// When was savepoint committed?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitDate()); // 2024-07-17T22:40:56.786Z
Clone this wiki locally