Class ConnectionAbstract

Abstract base class for database connections.

Abstract

Hierarchy

Constructors

Properties

bus: Bus<Event>
config: any = {}

This connection's config object

name: string

The name of this connection

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

  • Protected

    Fire a QueryExecutedEvent for the given query string.

    Parameters

    • query: string

    Returns Promise<void>