UNPKG

@clickup/pg-microsharding

Version:
19 lines 675 B
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