@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
22 lines • 745 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[]);
get workers(): readonly Worker[];
get totalMigrations(): number;
get processedMigrations(): number;
get elapsedSeconds(): number;
get numErrors(): number;
run(onChange?: () => void): Promise<boolean>;
}
//# sourceMappingURL=Grid.d.ts.map