UNPKG

reveal-sdk-node

Version:

RevealBI Node.js SDK

59 lines (58 loc) 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RVCubeDevDataSource = void 0; const RVSqlPDSDataSource_1 = require("../AbstractClasses/RVSqlPDSDataSource"); /** * Cube.dev data source */ class RVCubeDevDataSource extends RVSqlPDSDataSource_1.RVSqlPDSDataSource { /** @hidden */ constructor(json) { super(json); this._database = null; this._schema = null; if (json) { let props = json.Properties; this._database = props['Database']; this._schema = props['Schema']; } } /** @hidden */ toJson() { let json = super.toJson(); let props = json.Properties; props['Database'] = this._database; props['Schema'] = this._schema; return json; } /** @hidden */ getProviderKey() { return 'CUBE_DEV_TABULAR'; } /** Name of the database to connect to. */ get database() { return this._database; } set database(value) { this._database = value; } /** Name of the schema to use. */ get schema() { return this._schema; } set schema(value) { this._schema = value; } /** @hidden */ getType() { return "RVCubeDevDataSource"; } /** @hidden */ _getWrapper() { let wrapper = super._getWrapper(); wrapper.database(this.database); wrapper.schema(this.schema); return wrapper; } } exports.RVCubeDevDataSource = RVCubeDevDataSource;