UNPKG

@clickup/pg-microsharding

Version:
13 lines 579 B
/** * Removes old and semi-migrated schemas, and optionally orphan microshard * schemas (those matching the microshard pattern but absent from the active * shards list). */ export declare function cleanup({ dsn, noOldShards, confirm, noOrphanShards, confirmOrphanShards, }: { dsn: string; noOldShards?: (oldSchemaNameRe: string) => Promise<void>; confirm?: (schemas: string[]) => Promise<boolean>; noOrphanShards?: () => Promise<void>; confirmOrphanShards?: (schemas: string[]) => Promise<boolean>; }): Promise<void>; //# sourceMappingURL=cleanup.d.ts.map