@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
22 lines • 737 B
TypeScript
import type { Chain } from "./Patch";
import { Worker } from "./Worker";
/**
* A fixed set of Workers running the migration chains.
*/
export declare class Grid {
readonly chains: Chain[];
readonly workersPerHost: number;
readonly beforeChains: Chain[];
readonly afterChains: Chain[];
private workers;
private totalMigrations;
private startTime;
constructor(chains: Chain[], workersPerHost: number, beforeChains?: Chain[], afterChains?: Chain[]);
getWorkers(): readonly Worker[];
getTotalMigrations(): number;
getProcessedMigrations(): number;
getElapsedSeconds(): number;
getNumErrors(): number;
run(onChange?: () => void): Promise<boolean>;
}
//# sourceMappingURL=Grid.d.ts.map