@clickup/pg-mig
Version:
PostgreSQL schema migration tool with microsharding and clustering support
8 lines • 476 B
TypeScript
/**
* Returns true if the schema should have migrations applied. Non-shard schemas
* (matched by the exact prefix name, e.g. "public") are always valid. Shard
* schemas (matched by prefix + digits, e.g. "sh0042") are valid only when
* validShards is undefined (no filter) or contains the schema name.
*/
export declare function isSchemaValid(schema: string, schemaPrefix: string, validShards: Set<string> | undefined): boolean;
//# sourceMappingURL=isSchemaValid.d.ts.map