UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

46 lines (45 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVMySqlDataSource = void 0; const RVSqlPDSDataSource_1 = require("../AbstractClasses/RVSqlPDSDataSource"); /** MySQL data source */ class RVMySqlDataSource extends RVSqlPDSDataSource_1.RVSqlPDSDataSource { /** @hidden */ constructor(json) { super(json); this._database = null; if (json) { var props = json.Properties; this._database = props === null || props === void 0 ? void 0 : props.Database; } } /** @hidden */ toJson() { var json = super.toJson(); var props = json.Properties; props.Database = this._database; return json; } /** @hidden */ getProviderKey() { return 'MYSQL'; } /** Name of the database to connect to. */ get database() { return this._database; } set database(value) { this._database = value; } /** @hidden */ getType() { return "RVMySqlDataSource"; } /** @hidden */ _getWrapper() { var wrapper = super._getWrapper(); wrapper.database(this.database); return wrapper; } } exports.RVMySqlDataSource = RVMySqlDataSource;