API 参考
    正在准备搜索索引...

    ConnectionManager is used to store and manage multiple orm connections. It also provides useful factory methods to simplify connection creation.

    索引

    构造函数

    访问器

    方法

    构造函数

    访问器

    • get connections(): DataSource[]

      List of connections registered in this connection manager.

      返回 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.

      参数

      返回 DataSource

    • 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.

      参数

      • 可选name: string

      返回 DataSource

    • Checks if connection with the given name exist in the manager.

      参数

      • name: string

      返回 boolean