Skip to content

savepoint.commitClientID()

Oxford Harrison edited this page Nov 15, 2024 · 1 revision

DOCSAPISavepoint API


Get the Savepoint's commit reference. This returns the identifier (ClientOptions.clientID) associated with the Linked QL client that created the savepoint, or if having been rolled back and recommitted, the identifier assocaited with the Linked QL client of last recommit operation (savepoint.recommit()).

See related ➞ savepoint.rollbackClientID()

Syntax

savepoint.commitClientID(): string;

Usage

// Who committed savepoint?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitClientID()); // '[email protected]'
Clone this wiki locally