Skip to content

PgPoolLike — @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 { PgPoolLike } from '@gj-kit/toss-payments-postgresql';
/**
* `pg.Pool`이 그대로 대입되는 구조적 타입 — `query(text, values)`와
* `connect()`만 요구한다. pg를 import하지 않으므로 런타임·타입 의존성 모두 0.
*/
interface PgPoolLike {
query(text: string, values?: readonly unknown[]): Promise<PgQueryResultLike>;
connect(): Promise<PgPoolClientLike>;
}

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