reveal-sdk-node
Version:
RevealBI Node.js SDK
76 lines (75 loc) • 2.02 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RVDatabricksDataSource = void 0;
const RVSqlPDSDataSource_1 = require("../AbstractClasses/RVSqlPDSDataSource");
/**
* Databricks data source
*/
class RVDatabricksDataSource extends RVSqlPDSDataSource_1.RVSqlPDSDataSource {
/** @hidden */
constructor(json) {
super(json);
this._httpPath = null;
this._database = null;
this._schema = null;
if (json) {
var props = json.Properties;
this._httpPath = props["HttpPath"];
this._database = props['Database'];
this._schema = props['Schema'];
}
}
/** @hidden */
toJson() {
var json = super.toJson();
var props = json.Properties;
props['HttpPath'] = this._httpPath;
props["Database"] = this._database;
props['Schema'] = this._schema;
return json;
}
/** @hidden */
getProviderKey() {
return 'DATABRICKS';
}
/**
* The partial URL corresponding to the server to connect to.
*/
get httpPath() {
return this._httpPath;
}
set httpPath(value) {
this._httpPath = value;
}
/**
* Name of the database to connect to.
*/
get database() {
return this._database;
}
set database(value) {
this._database = value;
}
/**
* Name of the schema to connect to.
*/
get schema() {
return this._schema;
}
set schema(value) {
this._schema = value;
}
/** @hidden */
getType() {
return "RVDatabricksDataSource";
}
/** @hidden */
_getWrapper() {
var wrapper = super._getWrapper();
wrapper.httpPath(this.httpPath);
wrapper.database(this.database);
wrapper.schema(this.schema);
return wrapper;
}
}
exports.RVDatabricksDataSource = RVDatabricksDataSource;