????
Current Path : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/typeorm/connection/ |
Current File : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/typeorm/connection/ConnectionManager.d.ts |
import { DataSource } from "../data-source/DataSource"; import { DataSourceOptions } from "../data-source/DataSourceOptions"; /** * ConnectionManager is used to store and manage multiple orm connections. * It also provides useful factory methods to simplify connection creation. * * @deprecated */ export declare class ConnectionManager { /** * List of connections registered in this connection manager. */ get connections(): DataSource[]; /** * Internal lookup to quickly get from a connection name to the Connection object. */ private readonly connectionMap; /** * Checks if connection with the given name exist in the manager. */ has(name: string): boolean; /** * Gets registered connection with the given name. * If connection name is not given then it will get a default connection. * Throws error if connection with the given name was not found. */ get(name?: string): DataSource; /** * Creates a new connection based on the given connection options and registers it in the manager. * Connection won't be established, you'll need to manually call connect method to establish connection. */ create(options: DataSourceOptions): DataSource; }