fromPgPool — @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.
Verified import example
Section titled “Verified import example”import { fromPgPool } from '@gj-kit/toss-payments-postgresql';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * pg Pool → SqlClient 어댑터 (설계 §2). * * `withConnection`은 connect → fn → release를 정확히 1회 보장한다. fn이 throw하면 * `release(err)`로 커넥션을 **폐기**한다 — 실패한 트랜잭션·advisory lock이 걸린 세션이 * 풀로 되돌아가 다음 사용자를 오염시키는 사고를 막는다(BEGIN 잔존이 대표 사례). */declare function fromPgPool(pool: PgPoolLike): SqlClient;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.
Release context
Section titled “Release context”- Package:
@gj-kit/toss-payments-postgresql - Version:
0.5.1 - Public entry:
. - Source: GitHub