@clickup/pg-microsharding
Version:
Microshards support for PostgreSQL
19 lines • 530 B
TypeScript
/**
* Similar to listActiveSchemas(), but also returns the weight of each
* microshard and its number.
*/
export declare function weights({ dsn, weightSql, verbose, }: {
dsn: string;
weightSql: string | undefined;
verbose?: boolean;
}): Promise<Array<{
weightColName: string;
weight: number;
appliedFactor: number;
unit: string | undefined;
other: Record<string, string>;
otherNormalized: Record<string, string>;
schema: string;
no: number;
}>>;
//# sourceMappingURL=weights.d.ts.map