UNPKG

multibridge

Version:

A multi-database connection framework with centralized configuration

10 lines (9 loc) 292 B
export interface ConnectVo { appid: string; orgid: string; appdbname: string; } export declare function runWithTenant<T>(tenant: ConnectVo, fn: () => Promise<T>, options?: { lazyConnection?: boolean; }): Promise<T>; export declare function getTenant(): ConnectVo | undefined;