Application unit responsible for loading and creating database connections from config.

Hierarchy

Constructors

Properties

config: Config
dbService: DatabaseService
injector: Container
logging: Logging
status: UnitStatus = UnitStatus.Stopped

The current status of the unit.

Accessors

Methods

  • Get the method with the given name from this class, bound to this class.

    Returns

    function

    Parameters

    • methodName: string

    Returns ((...args: any[]) => any)

      • (...args: any[]): any
      • Get the method with the given name from this class, bound to this class.

        Returns

        function

        Parameters

        • Rest ...args: any[]

        Returns any

  • Call the make() method on the global container.

    Type Parameters

    • T

    Parameters

    • target: any
    • Rest ...parameters: any[]

    Returns T

  • Load the database.connections config and register Connection instances for each config. Automatically initializes the connections.

    Returns Promise<void>