import { DataSource, DataSourceOptions } from 'typeorm'; /** * DataSourceManager is used to store and manage multiple orm dataSources. * It also provides useful factory methods to simplify dataSource creation. * */ export declare class DataSourceManager { /** * List of dataSources registered in this dataSource manager. */ get dataSources(): DataSource[]; /** * Internal lookup to quickly get from a dataSource name to the DataSource object. */ private readonly dataSourceMap; /** * Checks if dataSource with the given name exist in the manager. */ has(name: string): boolean; /** * Gets registered dataSource with the given name. * If dataSource name is not given then it will get a default dataSource. * Throws error if dataSource with the given name was not found. */ get(name?: string): DataSource; /** * Creates a new dataSource based on the given dataSource options and registers it in the manager. * DataSource won't be established, you'll need to manually call connect method to establish dataSource. */ create(options: DataSourceOptions & { name?: string; }): DataSource; } //# sourceMappingURL=data-source-manager.d.ts.map