@clickup/pg-microsharding
Version:
Microshards support for PostgreSQL
19 lines • 675 B
TypeScript
export declare const WEIGHT_COL_NAME_DEFAULT = "Weight";
/**
* Returns weights for each schema in the list. SQL query in weightSql should
* return a numeric value with optional units after it; the units should be the
* same in all responses and are ignored while sorting.
*/
export declare function getSchemaWeights({ dsn, schemas, weightSql, verbose, }: {
dsn: string;
schemas: string[];
weightSql: string | undefined;
verbose?: boolean;
}): Promise<Map<string, {
weightColName: string;
weight: number;
appliedFactor: number;
unit: string | undefined;
other: Record<string, string>;
}>>;
//# sourceMappingURL=getSchemaWeights.d.ts.map