UNPKG

pg-node-migrations

Version:

Based on the work on ThomWright's postgres migration package. Adds the ability to specify a schema and table name.

3 lines (2 loc) 188 B
import { Logger, BasicPgClient } from "./types"; export declare function withAdvisoryLock<T>(log: Logger, f: (client: BasicPgClient) => Promise<T>): (client: BasicPgClient) => Promise<T>;