@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
11 lines • 327 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseLsn = parseLsn;
/**
* Parses a WAL LSN number into a JS bigint.
*/
function parseLsn(lsn) {
const [a, b] = lsn.split("/").map((x) => BigInt(parseInt(x, 16)));
return (a << BigInt(32)) + b;
}
//# sourceMappingURL=parseLsn.js.map
;