UNPKG

multibridge

Version:

A multi-database connection framework with centralized configuration

16 lines (15 loc) 526 B
import { CentralDBConfig } from "../types/dbTypes"; export declare function fetchDBConfig(appId: string, orgId: string): Promise<CentralDBConfig | null>; /** * Invalidate cached config for a specific tenant */ export declare function invalidateConfigCache(appId: string, orgId: string): void; /** * Clear all cached configs */ export declare function clearConfigCache(): void; /** * Close the central database pool * Should be called during graceful shutdown */ export declare function closeCentralDB(): Promise<void>;