UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

48 lines (47 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVSyBaseDataSource = void 0; const RVSqlBasedDataSource_1 = require("../AbstractClasses/RVSqlBasedDataSource"); /** Sybase data source, it adds the database name property to the base properties inherited from the abstract class RVSqlBasedDataSource. */ class RVSyBaseDataSource extends RVSqlBasedDataSource_1.RVSqlBasedDataSource { /** @hidden */ constructor(json) { super(json); this._database = null; if (json) { var props = json["Properties"]; if (props) { this._database = props["Database"]; } } } /** @hidden */ toJson() { var json = super.toJson(); var props = json["Properties"]; props["Database"] = this._database; return json; } /** @hidden */ getProviderKey() { return 'SYBASE'; } /** Name of the database to connect to. */ get database() { return this._database; } set database(value) { this._database = value; } /** @hidden */ getType() { return "RVSyBaseDataSource"; } /** @hidden */ _getWrapper() { let wrapper = super._getWrapper(); wrapper.database(this.database); return wrapper; } } exports.RVSyBaseDataSource = RVSyBaseDataSource;