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.

8 lines (7 loc) 487 B
import { BasicPgClient, Config, CreateDBConfig, Logger } from "./types"; /** * @deprecated Use `migrate` instead with `ensureDatabaseExists: true`. */ export declare function createDb(dbName: string, dbConfig: CreateDBConfig, config?: Config): Promise<void>; export declare function runCreateQuery(dbName: string, log: Logger): (client: BasicPgClient) => Promise<void>; export declare function runSchemaQuery(schemaName: string, log: Logger): (client: BasicPgClient) => Promise<void>;