multibridge
Version:
A multi-database connection framework with centralized configuration
17 lines (16 loc) • 384 B
TypeScript
/**
* Type definitions for ORM adapters
*/
import { ConnectVo } from "../context/tenantContext";
import { DBType } from "../types/dbTypes";
export interface ORMAdapterConfig {
tenant: ConnectVo;
models?: any;
options?: Record<string, any>;
}
export interface ORMInstance {
tenant: ConnectVo;
dbType: DBType;
instance: any;
close?: () => Promise<void>;
}