reveal-sdk-node
Version:
RevealBI Node.js SDK
48 lines (47 loc) • 1.3 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVOracleDataSource = void 0;
const RVSqlBasedDataSource_1 = require("../AbstractClasses/RVSqlBasedDataSource");
/**
* @hidden
*/
class RVOracleDataSource extends RVSqlBasedDataSource_1.RVSqlBasedDataSource {
/** @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 'ORACLE';
}
/** Name of the database to connect to. */
get database() {
return this._database;
}
set database(value) {
this._database = value;
}
/** @hidden */
getType() {
return "RVOracleDataSource";
}
/** @hidden */
_getWrapper() {
let wrapper = super._getWrapper();
wrapper.database(this.database);
return wrapper;
}
}
exports.RVOracleDataSource = RVOracleDataSource;
;