Skip to content

advisoryLockKey — @gj-kit/toss-payments-postgresql

A public function from @gj-kit/toss-payments-postgresql. The signature below is taken directly from the 0.5.1 release declaration.

import { advisoryLockKey } from '@gj-kit/toss-payments-postgresql';
/**
* FNV-1a 64bit — advisory lock 키 파생 (문서화된 고정 알고리즘, 설계 §4).
*
* `pg_advisory_xact_lock(bigint)`은 **signed** int8을 받으므로 unsigned 64bit 해시를
* `BigInt.asIntN(64, ...)`으로 2의 보수 재해석해 int8 범위에 맞춘다 — 값의 비트는
* 동일하고 표기만 음수가 될 수 있다. 파라미터는 문자열로 보낸다(드라이버들의 BigInt
* 직렬화 지원이 제각각이고, PostgreSQL이 함수 시그니처로 타입을 추론한다).
*/
declare function advisoryLockKey(schema: string): bigint;

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/toss-payments-postgresql
  • Version: 0.5.1
  • Public entry: .
  • Source: GitHub