UNPKG

multibridge

Version:

A multi-database connection framework with centralized configuration

8 lines (7 loc) 1.12 kB
import { runWithTenant, ConnectVo } from "./context/tenantContext"; import { getConnection, closeConnection, closeAllConnections, getConnectionStats } from "./connections/connectionManager"; import { executeQuery } from "./utils/executeQuery"; import { closeCentralDB, invalidateConfigCache, clearConfigCache } from "./config/dbConfig"; export { runWithTenant, ConnectVo, getConnection, closeConnection, closeAllConnections, getConnectionStats, executeQuery, closeCentralDB, invalidateConfigCache, clearConfigCache, }; export { MultiBridgeError, TenantContextError, ConnectionError, ConfigurationError, ValidationError, QueryError, TimeoutError, } from "./utils/errors"; export { getSequelizeInstance, closeSequelizeInstance, closeAllSequelizeInstances, getTypeORMDataSource, closeTypeORMDataSource, closeAllTypeORMDataSources, getMongooseConnection, closeMongooseConnection, closeAllMongooseConnections, getCassandraClient, executeCQL, createTable, insert, select, update, remove, closeCassandraClient, closeAllCassandraClients, type ORMInstance, type ORMAdapterConfig, type CassandraModelDefinition, } from "./orm";