UNPKG

@eggjs/dal-plugin

Version:
12 lines (11 loc) 551 B
import { type DataSourceOptions, MysqlDataSource } from '@eggjs/dal-runtime'; export declare class MysqlDataSourceManager { static instance: MysqlDataSourceManager; private readonly dataSourceIndices; private readonly dataSources; constructor(); get(moduleName: string, dataSourceName: string): MysqlDataSource | undefined; createDataSource(moduleName: string, dataSourceName: string, config: DataSourceOptions): Promise<void>; clear(): void; static createDataSourceKey(dataSourceOptions: DataSourceOptions): string; }