@clickup/pg-microsharding
Version:
Microshards support for PostgreSQL
13 lines • 626 B
TypeScript
/**
* From the list of existingDsns, choose the ones that match the prefixes.
* - When existingDsns is empty, when multiple entries in existingDsns match
* some prefix, or when no existingDsns entries match some prefix, then tries
* to treat that prefix as DSNs itself (and throws if it cannot).
* - If requireMatch=true, each pattern must match exactly one existing DSN.
*/
export declare function chooseDsns({ patterns, existingDsns, requireMatch, }: {
patterns: string[];
existingDsns: string[];
requireMatch: boolean;
}): [dsns: string[], warnings: string[]];
//# sourceMappingURL=chooseDsns.d.ts.map