Skip to content

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

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

import { SqlClient } from '@gj-kit/toss-payments-postgresql';
interface SqlClient extends SqlExecutor {
/**
* 단일 세션에 고정된 실행기로 fn을 실행한다 — migrate()·billing-key mutation lock·opaque
* lifecycle advisory lock의 transaction이 풀의 서로 다른 커넥션으로 흩어지지 않기 위한 요구다.
*/
withConnection<T>(fn: (session: SqlExecutor) => Promise<T>): Promise<T>;
}

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