-
-
Notifications
You must be signed in to change notification settings - Fork 2
savepoint.commitClientID()
Oxford Harrison edited this page Nov 15, 2024
·
1 revision
DOCS • API • Savepoint 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()
savepoint.commitClientID(): string;
// Who committed savepoint?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitClientID()); // 'johndoe@example.com'