UNPKG

@clickup/pg-mig

Version:

PostgreSQL schema migration tool with microsharding and clustering support

34 lines 1.02 kB
import type { Dest } from "./Dest"; /** * A tag which is expected to be echoed right after the migration file is * applied. This is for better output (an optional thing). */ export declare const MIGRATION_VERSION_APPLIED = "MIGRATION_VERSION_APPLIED"; /** * A wrapper for running psql. * * Keeps track on stdout/stderr (and both), also allows to trigger * and event if something is changed there, plus to read the last * line of the output. */ export declare class Psql { private dest; private cwd; private stdin; private _args; private _code; private _stdout; private _stderr; private _out; private _cmdline; constructor(dest: Dest, cwd: string, args: string[], stdin: string); get code(): number | null; get stdout(): string; get stderr(): string; get warning(): string | null; get out(): string; get cmdline(): string; get lastOutLine(): string; run(onOut?: (proc: this) => void): Promise<this>; } //# sourceMappingURL=Psql.d.ts.map