"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HotDB = exports.HotDBType = exports.ConnectionStatus = void 0;
/**
 * The database connection status.
 */
var ConnectionStatus;
(function (ConnectionStatus) {
    ConnectionStatus[ConnectionStatus["Disconnected"] = 0] = "Disconnected";
    ConnectionStatus[ConnectionStatus["Connecting"] = 1] = "Connecting";
    ConnectionStatus[ConnectionStatus["Connected"] = 2] = "Connected";
    ConnectionStatus[ConnectionStatus["Error"] = 3] = "Error";
})(ConnectionStatus || (exports.ConnectionStatus = ConnectionStatus = {}));
/**
 * The database type.
 */
var HotDBType;
(function (HotDBType) {
    HotDBType["None"] = "none";
    HotDBType["MySQL"] = "mysql";
    HotDBType["MariaDB"] = "mariadb";
    HotDBType["Influx"] = "influx";
    HotDBType["Postgres"] = "postgres";
})(HotDBType || (exports.HotDBType = HotDBType = {}));
/**
 * The server-side database connection. This may be deprecated and removed in a future version soon.
 */
class HotDB {
    constructor(db = null, type = HotDBType.None, schema = null) {
        this.type = type;
        this.db = db;
        this.connectionStatus = ConnectionStatus.Disconnected;
        this.connectionLimit = 10;
        this.schema = schema;
    }
}
exports.HotDB = HotDB;
//# sourceMappingURL=HotDB.js.map