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.

4 lines (3 loc) 208 B
import * as pg from "pg"; import { Logger, BasicPgClient } from "./types"; export declare function withConnection<T>(log: Logger, f: (client: BasicPgClient) => Promise<T>): (client: pg.Client) => Promise<T>;