UNPKG

@clickup/pg-mig

Version:

PostgreSQL schema migration tool with microsharding and clustering support

34 lines 1 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); getCode(): number | null; getStdout(): string; getStderr(): string; getWarning(): string | null; getOut(): string; getCmdline(): string; getLastOutLine(): string; run(onOut?: (proc: this) => void): Promise<this>; } //# sourceMappingURL=Psql.d.ts.map