Skip to content

savepoint.rollbackClientPID()

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

DOCSAPISavepoint API


Get the Savepoint's rollback client PID. This returns the process ID/connection ID of the Linked QL client that performed last rollback operation (savepoint.rollback()).

See related ➞ savepoint.commitClientPID()

Syntax

savepoint.rollbackClientPID(): string;

Usage

// Which client rolled back savepoint?
const savepoint = await client.database('database_1').savepoint({ lookAhead: true });
console.log(savepoint.rollbackClientPID()); // '72776'
Clone this wiki locally