Class Database<T>Abstract

Type Parameters

  • T

    A certain database type definition.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

db: T
debug: Debugger = ...

Methods

  • The getDB() method returns database instance and prevents user from accidentally access the production database.

    Returns T

  • Protected

    The initDB() abstract method will be called in the class constructor to initialise the database. This returns the database specified by generic T.

    Abstract

    Returns T

  • Protected

    The isProdDB() abstract method checks the connection whether it is a production or not.

    Returns boolean

Generated using TypeDoc