-
-
Notifications
You must be signed in to change notification settings - Fork 2
savepoint.commitDate()
Oxford Harrison edited this page Nov 15, 2024
·
2 revisions
DOCS • API • Savepoint 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()
savepoint.commitDate(): Date;
// When was savepoint committed?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitDate()); // 2024-07-17T22:40:56.786Z