Skip to content

savepoint.commitClientPID()

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

DOCSAPISavepoint API


Get the Savepoint's commit client PID. This returns the process ID/connection ID of the Linked QL client that performed the original DDL operation, or if having been rolled back and recommitted, of the Linked QL client that performed last recommit operation (savepoint.recommit()).

See related ➞ savepoint.rollbackClientPID()

Syntax

savepoint.commitClientPID(): string;

Usage

// Which client rolled back savepoint?
const savepoint = await client.database('database_1').savepoint();
console.log(savepoint.commitClientPID()); // '72776'
Clone this wiki locally