UNPKG

@clickup/pg-mig

Version:

PostgreSQL schema migration tool with microsharding and clustering support

29 lines 978 B
import { Semaphore } from "await-semaphore"; import type { Dest } from "./Dest"; import type { Chain, Migration } from "./Patch"; export interface MigrationOutput { dest: Dest; migration: Migration; payload: unknown; } export declare class Worker { private chainsQueue; private semaphores; private _succeededMigrations; private _errorMigrations; private _warningMigrations; private _curDest; private _curMigration; private _curLine; constructor(chainsQueue: Chain[], semaphores: Record<string, Semaphore>); get succeededMigrations(): number; get errorMigrations(): readonly MigrationOutput[]; get warningMigrations(): readonly MigrationOutput[]; get curDest(): Readonly<Dest> | null; get curMigration(): Readonly<Migration> | null; get curLine(): string | null; run(onChange: () => void): Promise<void>; private processMigration; private acquireSemaphore; } //# sourceMappingURL=Worker.d.ts.map