@databricks/sql 0.1.8-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +32 -0
- package/CHANGELOG.md +1 -0
- package/CONTRIBUTING.md +55 -0
- package/LICENSE +201 -0
- package/README.md +78 -0
- package/dist/DBSQLClient.d.ts +42 -0
- package/dist/DBSQLClient.js +111 -0
- package/dist/DBSQLClient.js.map +1 -0
- package/dist/HiveClient.d.ts +35 -0
- package/dist/HiveClient.js +156 -0
- package/dist/HiveClient.js.map +1 -0
- package/dist/HiveOperation.d.ts +65 -0
- package/dist/HiveOperation.js +190 -0
- package/dist/HiveOperation.js.map +1 -0
- package/dist/HiveSession.d.ts +30 -0
- package/dist/HiveSession.js +197 -0
- package/dist/HiveSession.js.map +1 -0
- package/dist/connection/auth/NoSaslAuthentication.d.ts +5 -0
- package/dist/connection/auth/NoSaslAuthentication.js +15 -0
- package/dist/connection/auth/NoSaslAuthentication.js.map +1 -0
- package/dist/connection/auth/PlainHttpAuthentication.d.ts +15 -0
- package/dist/connection/auth/PlainHttpAuthentication.js +30 -0
- package/dist/connection/auth/PlainHttpAuthentication.js.map +1 -0
- package/dist/connection/auth/helpers/SaslPackageFactory.d.ts +11 -0
- package/dist/connection/auth/helpers/SaslPackageFactory.js +24 -0
- package/dist/connection/auth/helpers/SaslPackageFactory.js.map +1 -0
- package/dist/connection/connections/HttpConnection.d.ts +13 -0
- package/dist/connection/connections/HttpConnection.js +77 -0
- package/dist/connection/connections/HttpConnection.js.map +1 -0
- package/dist/connection/contracts/IAuthentication.d.ts +4 -0
- package/dist/connection/contracts/IAuthentication.js +3 -0
- package/dist/connection/contracts/IAuthentication.js.map +1 -0
- package/dist/connection/contracts/IConnectionOptions.d.ts +23 -0
- package/dist/connection/contracts/IConnectionOptions.js +3 -0
- package/dist/connection/contracts/IConnectionOptions.js.map +1 -0
- package/dist/connection/contracts/IConnectionProvider.d.ts +6 -0
- package/dist/connection/contracts/IConnectionProvider.js +3 -0
- package/dist/connection/contracts/IConnectionProvider.js.map +1 -0
- package/dist/connection/contracts/IThriftConnection.d.ts +4 -0
- package/dist/connection/contracts/IThriftConnection.js +3 -0
- package/dist/connection/contracts/IThriftConnection.js.map +1 -0
- package/dist/connection/contracts/ITransport.d.ts +13 -0
- package/dist/connection/contracts/ITransport.js +3 -0
- package/dist/connection/contracts/ITransport.js.map +1 -0
- package/dist/connection/transports/HttpTransport.d.ts +14 -0
- package/dist/connection/transports/HttpTransport.js +39 -0
- package/dist/connection/transports/HttpTransport.js.map +1 -0
- package/dist/connection/types/AuthOptions.d.ts +4 -0
- package/dist/connection/types/AuthOptions.js +3 -0
- package/dist/connection/types/AuthOptions.js.map +1 -0
- package/dist/contracts/IHiveClient.d.ts +10 -0
- package/dist/contracts/IHiveClient.js +3 -0
- package/dist/contracts/IHiveClient.js.map +1 -0
- package/dist/contracts/IHiveSession.d.ts +126 -0
- package/dist/contracts/IHiveSession.js +3 -0
- package/dist/contracts/IHiveSession.js.map +1 -0
- package/dist/contracts/IOperation.d.ts +47 -0
- package/dist/contracts/IOperation.js +3 -0
- package/dist/contracts/IOperation.js.map +1 -0
- package/dist/dto/InfoValue.d.ts +9 -0
- package/dist/dto/InfoValue.js +31 -0
- package/dist/dto/InfoValue.js.map +1 -0
- package/dist/dto/Status.d.ts +15 -0
- package/dist/dto/Status.js +21 -0
- package/dist/dto/Status.js.map +1 -0
- package/dist/errors/AuthenticationError.d.ts +3 -0
- package/dist/errors/AuthenticationError.js +30 -0
- package/dist/errors/AuthenticationError.js.map +1 -0
- package/dist/errors/HiveDriverError.d.ts +2 -0
- package/dist/errors/HiveDriverError.js +26 -0
- package/dist/errors/HiveDriverError.js.map +1 -0
- package/dist/errors/OperationStateError.d.ts +6 -0
- package/dist/errors/OperationStateError.js +32 -0
- package/dist/errors/OperationStateError.js.map +1 -0
- package/dist/errors/StatusError.d.ts +8 -0
- package/dist/errors/StatusError.js +15 -0
- package/dist/errors/StatusError.js.map +1 -0
- package/dist/factory/StatusFactory.d.ts +14 -0
- package/dist/factory/StatusFactory.js +40 -0
- package/dist/factory/StatusFactory.js.map +1 -0
- package/dist/hive/Commands/BaseCommand.d.ts +7 -0
- package/dist/hive/Commands/BaseCommand.js +36 -0
- package/dist/hive/Commands/BaseCommand.js.map +1 -0
- package/dist/hive/Commands/CancelDelegationTokenCommand.d.ts +12 -0
- package/dist/hive/Commands/CancelDelegationTokenCommand.js +34 -0
- package/dist/hive/Commands/CancelDelegationTokenCommand.js.map +1 -0
- package/dist/hive/Commands/CancelOperationCommand.d.ts +11 -0
- package/dist/hive/Commands/CancelOperationCommand.js +34 -0
- package/dist/hive/Commands/CancelOperationCommand.js.map +1 -0
- package/dist/hive/Commands/CloseOperationCommand.d.ts +11 -0
- package/dist/hive/Commands/CloseOperationCommand.js +34 -0
- package/dist/hive/Commands/CloseOperationCommand.js.map +1 -0
- package/dist/hive/Commands/CloseSessionCommand.d.ts +11 -0
- package/dist/hive/Commands/CloseSessionCommand.js +34 -0
- package/dist/hive/Commands/CloseSessionCommand.js.map +1 -0
- package/dist/hive/Commands/ExecuteStatementCommand.d.ts +17 -0
- package/dist/hive/Commands/ExecuteStatementCommand.js +34 -0
- package/dist/hive/Commands/ExecuteStatementCommand.js.map +1 -0
- package/dist/hive/Commands/FetchResultsCommand.d.ts +20 -0
- package/dist/hive/Commands/FetchResultsCommand.js +34 -0
- package/dist/hive/Commands/FetchResultsCommand.js.map +1 -0
- package/dist/hive/Commands/GetCatalogsCommand.d.ts +12 -0
- package/dist/hive/Commands/GetCatalogsCommand.js +34 -0
- package/dist/hive/Commands/GetCatalogsCommand.js.map +1 -0
- package/dist/hive/Commands/GetColumnsCommand.d.ts +16 -0
- package/dist/hive/Commands/GetColumnsCommand.js +34 -0
- package/dist/hive/Commands/GetColumnsCommand.js.map +1 -0
- package/dist/hive/Commands/GetCrossReferenceCommand.d.ts +18 -0
- package/dist/hive/Commands/GetCrossReferenceCommand.js +34 -0
- package/dist/hive/Commands/GetCrossReferenceCommand.js.map +1 -0
- package/dist/hive/Commands/GetDelegationTokenCommand.d.ts +14 -0
- package/dist/hive/Commands/GetDelegationTokenCommand.js +34 -0
- package/dist/hive/Commands/GetDelegationTokenCommand.js.map +1 -0
- package/dist/hive/Commands/GetFunctionsCommand.d.ts +15 -0
- package/dist/hive/Commands/GetFunctionsCommand.js +34 -0
- package/dist/hive/Commands/GetFunctionsCommand.js.map +1 -0
- package/dist/hive/Commands/GetInfoCommand.d.ts +16 -0
- package/dist/hive/Commands/GetInfoCommand.js +34 -0
- package/dist/hive/Commands/GetInfoCommand.js.map +1 -0
- package/dist/hive/Commands/GetOperationStatusCommand.d.ts +23 -0
- package/dist/hive/Commands/GetOperationStatusCommand.js +34 -0
- package/dist/hive/Commands/GetOperationStatusCommand.js.map +1 -0
- package/dist/hive/Commands/GetPrimaryKeysCommand.d.ts +15 -0
- package/dist/hive/Commands/GetPrimaryKeysCommand.js +34 -0
- package/dist/hive/Commands/GetPrimaryKeysCommand.js.map +1 -0
- package/dist/hive/Commands/GetQueryIdCommand.d.ts +11 -0
- package/dist/hive/Commands/GetQueryIdCommand.js +34 -0
- package/dist/hive/Commands/GetQueryIdCommand.js.map +1 -0
- package/dist/hive/Commands/GetResultSetMetadataCommand.d.ts +12 -0
- package/dist/hive/Commands/GetResultSetMetadataCommand.js +34 -0
- package/dist/hive/Commands/GetResultSetMetadataCommand.js.map +1 -0
- package/dist/hive/Commands/GetSchemasCommand.d.ts +14 -0
- package/dist/hive/Commands/GetSchemasCommand.js +34 -0
- package/dist/hive/Commands/GetSchemasCommand.js.map +1 -0
- package/dist/hive/Commands/GetTableTypesCommand.d.ts +12 -0
- package/dist/hive/Commands/GetTableTypesCommand.js +34 -0
- package/dist/hive/Commands/GetTableTypesCommand.js.map +1 -0
- package/dist/hive/Commands/GetTablesCommand.d.ts +16 -0
- package/dist/hive/Commands/GetTablesCommand.js +34 -0
- package/dist/hive/Commands/GetTablesCommand.js.map +1 -0
- package/dist/hive/Commands/GetTypeInfoCommand.d.ts +12 -0
- package/dist/hive/Commands/GetTypeInfoCommand.js +34 -0
- package/dist/hive/Commands/GetTypeInfoCommand.js.map +1 -0
- package/dist/hive/Commands/OpenSessionCommand.d.ts +33 -0
- package/dist/hive/Commands/OpenSessionCommand.js +34 -0
- package/dist/hive/Commands/OpenSessionCommand.js.map +1 -0
- package/dist/hive/Commands/RenewDelegationTokenCommand.d.ts +12 -0
- package/dist/hive/Commands/RenewDelegationTokenCommand.js +34 -0
- package/dist/hive/Commands/RenewDelegationTokenCommand.js.map +1 -0
- package/dist/hive/Commands/SetClientInfoCommand.d.ts +12 -0
- package/dist/hive/Commands/SetClientInfoCommand.js +34 -0
- package/dist/hive/Commands/SetClientInfoCommand.js.map +1 -0
- package/dist/hive/HiveDriver.d.ts +52 -0
- package/dist/hive/HiveDriver.js +129 -0
- package/dist/hive/HiveDriver.js.map +1 -0
- package/dist/hive/Types/index.d.ts +229 -0
- package/dist/hive/Types/index.js +16 -0
- package/dist/hive/Types/index.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +67 -0
- package/dist/index.js.map +1 -0
- package/dist/result/IOperationResult.d.ts +5 -0
- package/dist/result/IOperationResult.js +3 -0
- package/dist/result/IOperationResult.js.map +1 -0
- package/dist/result/JsonResult.d.ts +20 -0
- package/dist/result/JsonResult.js +137 -0
- package/dist/result/JsonResult.js.map +1 -0
- package/dist/result/NullResult.d.ts +6 -0
- package/dist/result/NullResult.js +13 -0
- package/dist/result/NullResult.js.map +1 -0
- package/dist/utils/GetResult.d.ts +16 -0
- package/dist/utils/GetResult.js +38 -0
- package/dist/utils/GetResult.js.map +1 -0
- package/dist/utils/HiveUtils.d.ts +11 -0
- package/dist/utils/HiveUtils.js +39 -0
- package/dist/utils/HiveUtils.js.map +1 -0
- package/dist/utils/ProgressUpdateTransformer.d.ts +8 -0
- package/dist/utils/ProgressUpdateTransformer.js +33 -0
- package/dist/utils/ProgressUpdateTransformer.js.map +1 -0
- package/dist/utils/WaitUntilReady.d.ts +16 -0
- package/dist/utils/WaitUntilReady.js +120 -0
- package/dist/utils/WaitUntilReady.js.map +1 -0
- package/docs/readme.md +227 -0
- package/docs/troubleshooting.md +84 -0
- package/examples/data_types.js +173 -0
- package/examples/repl +106 -0
- package/examples/session.js +55 -0
- package/examples/usage.js +18 -0
- package/nyc.config.js +8 -0
- package/package.json +56 -0
- package/tests/e2e/data_types.test.js +353 -0
- package/tests/e2e/utils/config.js +20 -0
- package/tests/e2e/utils/logger.js +22 -0
- package/tests/unit/HiveClient.test.js +153 -0
- package/tests/unit/HiveOperation.test.js +340 -0
- package/tests/unit/HiveSession.test.js +146 -0
- package/tests/unit/connection/auth/PlainHttpAuthentication.test.js +44 -0
- package/tests/unit/connection/connections/HttpConnection.test.js +141 -0
- package/tests/unit/dto/InfoValue.test.js +50 -0
- package/tests/unit/factory/StatusFactory.test.js +62 -0
- package/tests/unit/hive/HiveDriver.test.js +115 -0
- package/tests/unit/hive/commands/CancelDelegationTokenCommand.test.js +43 -0
- package/tests/unit/hive/commands/CancelOperationCommand.test.js +45 -0
- package/tests/unit/hive/commands/CloseOperationCommand.test.js +45 -0
- package/tests/unit/hive/commands/CloseSessionCommand.test.js +38 -0
- package/tests/unit/hive/commands/ExecuteStatementCommand.test.js +54 -0
- package/tests/unit/hive/commands/FetchResultsCommand.test.js +59 -0
- package/tests/unit/hive/commands/GetCatalogsCommand.test.js +50 -0
- package/tests/unit/hive/commands/GetColumnsCommand.test.js +50 -0
- package/tests/unit/hive/commands/GetCrossReferenceCommand.test.js +56 -0
- package/tests/unit/hive/commands/GetDelegationTokenCommand.test.js +45 -0
- package/tests/unit/hive/commands/GetFunctionsCommand.test.js +50 -0
- package/tests/unit/hive/commands/GetInfoCommand.test.js +51 -0
- package/tests/unit/hive/commands/GetOperationStatusCommand.test.js +63 -0
- package/tests/unit/hive/commands/GetPrimaryKeysCommand.test.js +50 -0
- package/tests/unit/hive/commands/GetQueryIdCommand.test.js +42 -0
- package/tests/unit/hive/commands/GetResultSetMetadataCommand.test.js +54 -0
- package/tests/unit/hive/commands/GetSchemasCommand.test.js +52 -0
- package/tests/unit/hive/commands/GetTableTypesCommand.test.js +50 -0
- package/tests/unit/hive/commands/GetTablesCommand.test.js +54 -0
- package/tests/unit/hive/commands/GetTypeInfoCommand.test.js +50 -0
- package/tests/unit/hive/commands/OpenSessionCommand.test.js +43 -0
- package/tests/unit/hive/commands/RenewDelegationTokenCommand.test.js +43 -0
- package/tests/unit/hive/commands/SetClientInfoCommand.test.js +45 -0
- package/tests/unit/result/JsonResult.test.js +295 -0
- package/tests/unit/utils/GetResult.test.js +30 -0
- package/tests/unit/utils/HiveUtils.test.js +60 -0
- package/tests/unit/utils/ProgressUpdateTransformer.test.js +28 -0
- package/tests/unit/utils/WaitUntilReady.test.js +105 -0
- package/thrift/TCLIService.thrift +1299 -0
- package/thrift/gen-nodejs/TCLIService.js +4596 -0
- package/thrift/gen-nodejs/TCLIService_types.js +6794 -0
- package/tsconfig.json +13 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var FetchResultsCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(FetchResultsCommand, _super);
|
|
24
|
+
function FetchResultsCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
FetchResultsCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TFetchResultsReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.FetchResults);
|
|
30
|
+
};
|
|
31
|
+
return FetchResultsCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = FetchResultsCommand;
|
|
34
|
+
//# sourceMappingURL=FetchResultsCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FetchResultsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/FetchResultsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAoBxC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,IAAyB;QAC7B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle, OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetCatalogsRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
};
|
|
6
|
+
export declare type GetCatalogsResponse = {
|
|
7
|
+
status: Status;
|
|
8
|
+
operationHandle: OperationHandle;
|
|
9
|
+
};
|
|
10
|
+
export default class GetCatalogsCommand extends BaseCommand {
|
|
11
|
+
execute(data: GetCatalogsRequest): Promise<GetCatalogsResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetCatalogsCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetCatalogsCommand, _super);
|
|
24
|
+
function GetCatalogsCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetCatalogsCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetCatalogsReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetCatalogs);
|
|
30
|
+
};
|
|
31
|
+
return GetCatalogsCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetCatalogsCommand;
|
|
34
|
+
//# sourceMappingURL=GetCatalogsCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetCatalogsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCatalogsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAYxC;IAAgD,sCAAW;IAA3D;;IAMA,CAAC;IALG,oCAAO,GAAP,UAAQ,IAAwB;QAC5B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAEjE,OAAO,IAAI,CAAC,cAAc,CAAsB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IACtF,CAAC;IACL,yBAAC;AAAD,CAAC,AAND,CAAgD,qBAAW,GAM1D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle, OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetColumnsRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
catalogName?: string;
|
|
6
|
+
schemaName?: string;
|
|
7
|
+
tableName?: string;
|
|
8
|
+
columnName?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare type GetColumnsResponse = {
|
|
11
|
+
status: Status;
|
|
12
|
+
operationHandle: OperationHandle;
|
|
13
|
+
};
|
|
14
|
+
export default class GetColumnsCommand extends BaseCommand {
|
|
15
|
+
execute(data: GetColumnsRequest): Promise<GetColumnsResponse>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetColumnsCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetColumnsCommand, _super);
|
|
24
|
+
function GetColumnsCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetColumnsCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetColumnsReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetColumns);
|
|
30
|
+
};
|
|
31
|
+
return GetColumnsCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetColumnsCommand;
|
|
34
|
+
//# sourceMappingURL=GetColumnsCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetColumnsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetColumnsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA+C,qCAAW;IAA1D;;IAMA,CAAC;IALG,mCAAO,GAAP,UAAQ,IAAuB;QAC3B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpF,CAAC;IACL,wBAAC;AAAD,CAAC,AAND,CAA+C,qBAAW,GAMzD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle, OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetCrossReferenceRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
parentCatalogName?: string;
|
|
6
|
+
parentSchemaName: string;
|
|
7
|
+
parentTableName: string;
|
|
8
|
+
foreignCatalogName?: string;
|
|
9
|
+
foreignSchemaName: string;
|
|
10
|
+
foreignTableName: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type GetCrossReferenceResponse = {
|
|
13
|
+
status: Status;
|
|
14
|
+
operationHandle: OperationHandle;
|
|
15
|
+
};
|
|
16
|
+
export default class GetCrossReferenceCommand extends BaseCommand {
|
|
17
|
+
execute(data: GetCrossReferenceRequest): Promise<GetCrossReferenceResponse>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetCrossReferenceCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetCrossReferenceCommand, _super);
|
|
24
|
+
function GetCrossReferenceCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetCrossReferenceCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetCrossReferenceReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetCrossReference);
|
|
30
|
+
};
|
|
31
|
+
return GetCrossReferenceCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetCrossReferenceCommand;
|
|
34
|
+
//# sourceMappingURL=GetCrossReferenceCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetCrossReferenceCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetCrossReferenceCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAkBxC;IAAsD,4CAAW;IAAjE;;IAMA,CAAC;IALG,0CAAO,GAAP,UAAQ,IAA8B;QAClC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;QAEvE,OAAO,IAAI,CAAC,cAAc,CAA4B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAClG,CAAC;IACL,+BAAC;AAAD,CAAC,AAND,CAAsD,qBAAW,GAMhE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle } from "../Types";
|
|
3
|
+
export declare type GetDelegationTokenRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
owner: string;
|
|
6
|
+
renewer: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type GetDelegationTokenResponse = {
|
|
9
|
+
status: Status;
|
|
10
|
+
delegationToken?: string;
|
|
11
|
+
};
|
|
12
|
+
export default class GetDelegationTokenCommand extends BaseCommand {
|
|
13
|
+
execute(data: GetDelegationTokenRequest): Promise<GetDelegationTokenResponse>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetDelegationTokenCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetDelegationTokenCommand, _super);
|
|
24
|
+
function GetDelegationTokenCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetDelegationTokenCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetDelegationTokenReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetDelegationToken);
|
|
30
|
+
};
|
|
31
|
+
return GetDelegationTokenCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetDelegationTokenCommand;
|
|
34
|
+
//# sourceMappingURL=GetDelegationTokenCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetDelegationTokenCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetDelegationTokenCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAcxC;IAAuD,6CAAW;IAAlE;;IAMA,CAAC;IALG,2CAAO,GAAP,UAAQ,IAA+B;QACnC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAExE,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACpG,CAAC;IACL,gCAAC;AAAD,CAAC,AAND,CAAuD,qBAAW,GAMjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle, OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetFunctionsRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
catalogName?: string;
|
|
6
|
+
schemaName?: string;
|
|
7
|
+
functionName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type GetFunctionsResponse = {
|
|
10
|
+
status: Status;
|
|
11
|
+
operationHandle: OperationHandle;
|
|
12
|
+
};
|
|
13
|
+
export default class GetFunctionsCommand extends BaseCommand {
|
|
14
|
+
execute(data: GetFunctionsRequest): Promise<GetFunctionsResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetFunctionsCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetFunctionsCommand, _super);
|
|
24
|
+
function GetFunctionsCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetFunctionsCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetFunctionsReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetFunctions);
|
|
30
|
+
};
|
|
31
|
+
return GetFunctionsCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetFunctionsCommand;
|
|
34
|
+
//# sourceMappingURL=GetFunctionsCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetFunctionsCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetFunctionsCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAexC;IAAiD,uCAAW;IAA5D;;IAMA,CAAC;IALG,qCAAO,GAAP,UAAQ,IAAyB;QAC7B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAElE,OAAO,IAAI,CAAC,cAAc,CAAuB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IACxF,CAAC;IACL,0BAAC;AAAD,CAAC,AAND,CAAiD,qBAAW,GAM3D"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, GetInfoValue, SessionHandle } from "../Types";
|
|
3
|
+
/**
|
|
4
|
+
* @param infoType TCLISErvice_types.TGetInfoType
|
|
5
|
+
*/
|
|
6
|
+
export declare type GetInfoRequest = {
|
|
7
|
+
sessionHandle: SessionHandle;
|
|
8
|
+
infoType: number;
|
|
9
|
+
};
|
|
10
|
+
export declare type GetInfoResponse = {
|
|
11
|
+
status: Status;
|
|
12
|
+
infoValue: GetInfoValue;
|
|
13
|
+
};
|
|
14
|
+
export default class GetInfoCommand extends BaseCommand {
|
|
15
|
+
execute(data: GetInfoRequest): Promise<GetInfoResponse>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetInfoCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetInfoCommand, _super);
|
|
24
|
+
function GetInfoCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetInfoCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetInfoReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetInfo);
|
|
30
|
+
};
|
|
31
|
+
return GetInfoCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetInfoCommand;
|
|
34
|
+
//# sourceMappingURL=GetInfoCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetInfoCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetInfoCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAgBxC;IAA4C,kCAAW;IAAvD;;IAMA,CAAC;IALG,gCAAO,GAAP,UAAQ,IAAoB;QACxB,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,cAAc,CAAkB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9E,CAAC;IACL,qBAAC;AAAD,CAAC,AAND,CAA4C,qBAAW,GAMtD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import BaseCommand from "./BaseCommand";
|
|
3
|
+
import { Status, OperationHandle, ProgressUpdateResponse } from "../Types";
|
|
4
|
+
export declare type GetOperationStatusRequest = {
|
|
5
|
+
operationHandle: OperationHandle;
|
|
6
|
+
getProgressUpdate?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare type GetOperationStatusResponse = {
|
|
9
|
+
status: Status;
|
|
10
|
+
operationState?: number;
|
|
11
|
+
sqlState?: string;
|
|
12
|
+
errorCode?: number;
|
|
13
|
+
errorMessage?: string;
|
|
14
|
+
taskStatus?: string;
|
|
15
|
+
operationStarted?: Buffer;
|
|
16
|
+
operationCompleted?: Buffer;
|
|
17
|
+
hasResultSet?: boolean;
|
|
18
|
+
progressUpdateResponse?: ProgressUpdateResponse;
|
|
19
|
+
numModifiedRows?: Buffer;
|
|
20
|
+
};
|
|
21
|
+
export default class GetOperationStatusCommand extends BaseCommand {
|
|
22
|
+
execute(data: GetOperationStatusRequest): Promise<GetOperationStatusResponse>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetOperationStatusCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetOperationStatusCommand, _super);
|
|
24
|
+
function GetOperationStatusCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetOperationStatusCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetOperationStatusReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetOperationStatus);
|
|
30
|
+
};
|
|
31
|
+
return GetOperationStatusCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetOperationStatusCommand;
|
|
34
|
+
//# sourceMappingURL=GetOperationStatusCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetOperationStatusCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetOperationStatusCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAsBxC;IAAuD,6CAAW;IAAlE;;IAMA,CAAC;IALG,2CAAO,GAAP,UAAQ,IAA+B;QACnC,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAExE,OAAO,IAAI,CAAC,cAAc,CAA6B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IACpG,CAAC;IACL,gCAAC;AAAD,CAAC,AAND,CAAuD,qBAAW,GAMjE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle, OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetPrimaryKeysRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
catalogName?: string;
|
|
6
|
+
schemaName: string;
|
|
7
|
+
tableName: string;
|
|
8
|
+
};
|
|
9
|
+
export declare type GetPrimaryKeysResponse = {
|
|
10
|
+
status: Status;
|
|
11
|
+
operationHandle: OperationHandle;
|
|
12
|
+
};
|
|
13
|
+
export default class GetPrimaryKeysCommand extends BaseCommand {
|
|
14
|
+
execute(data: GetPrimaryKeysRequest): Promise<GetPrimaryKeysResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetPrimaryKeysCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetPrimaryKeysCommand, _super);
|
|
24
|
+
function GetPrimaryKeysCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetPrimaryKeysCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetPrimaryKeysReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetPrimaryKeys);
|
|
30
|
+
};
|
|
31
|
+
return GetPrimaryKeysCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetPrimaryKeysCommand;
|
|
34
|
+
//# sourceMappingURL=GetPrimaryKeysCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetPrimaryKeysCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetPrimaryKeysCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAexC;IAAmD,yCAAW;IAA9D;;IAMA,CAAC;IALG,uCAAO,GAAP,UAAQ,IAA2B;QAC/B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;QAEpE,OAAO,IAAI,CAAC,cAAc,CAAyB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAC5F,CAAC;IACL,4BAAC;AAAD,CAAC,AAND,CAAmD,qBAAW,GAM7D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetQueryIdRequest = {
|
|
4
|
+
operationHandle: OperationHandle;
|
|
5
|
+
};
|
|
6
|
+
export declare type GetQueryIdResponse = {
|
|
7
|
+
queryId: string;
|
|
8
|
+
};
|
|
9
|
+
export default class GetQueryIdCommand extends BaseCommand {
|
|
10
|
+
execute(data: GetQueryIdRequest): Promise<GetQueryIdResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetQueryIdCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetQueryIdCommand, _super);
|
|
24
|
+
function GetQueryIdCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetQueryIdCommand.prototype.execute = function (data) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetQueryIdReq(data);
|
|
29
|
+
return this.executeCommand(request, this.client.GetQueryId);
|
|
30
|
+
};
|
|
31
|
+
return GetQueryIdCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetQueryIdCommand;
|
|
34
|
+
//# sourceMappingURL=GetQueryIdCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetQueryIdCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetQueryIdCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,8DAAwC;AAWxC;IAA+C,qCAAW;IAA1D;;IAMA,CAAC;IALG,mCAAO,GAAP,UAAQ,IAAuB;QAC3B,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAEhE,OAAO,IAAI,CAAC,cAAc,CAAqB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpF,CAAC;IACL,wBAAC;AAAD,CAAC,AAND,CAA+C,qBAAW,GAMzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TableSchema, Status, OperationHandle } from "../Types";
|
|
2
|
+
import BaseCommand from "./BaseCommand";
|
|
3
|
+
export declare type GetResultSetMetadataRequest = {
|
|
4
|
+
operationHandle: OperationHandle;
|
|
5
|
+
};
|
|
6
|
+
export declare type GetResultSetMetadataResponse = {
|
|
7
|
+
status: Status;
|
|
8
|
+
schema: TableSchema;
|
|
9
|
+
};
|
|
10
|
+
export default class GetResultSetMetadataCommand extends BaseCommand {
|
|
11
|
+
execute(getResultSetMetadataRequest: GetResultSetMetadataRequest): Promise<GetResultSetMetadataResponse>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var BaseCommand_1 = __importDefault(require("./BaseCommand"));
|
|
22
|
+
var GetResultSetMetadataCommand = /** @class */ (function (_super) {
|
|
23
|
+
__extends(GetResultSetMetadataCommand, _super);
|
|
24
|
+
function GetResultSetMetadataCommand() {
|
|
25
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
GetResultSetMetadataCommand.prototype.execute = function (getResultSetMetadataRequest) {
|
|
28
|
+
var request = new this.TCLIService_types.TGetResultSetMetadataReq(getResultSetMetadataRequest);
|
|
29
|
+
return this.executeCommand(request, this.client.GetResultSetMetadata);
|
|
30
|
+
};
|
|
31
|
+
return GetResultSetMetadataCommand;
|
|
32
|
+
}(BaseCommand_1.default));
|
|
33
|
+
exports.default = GetResultSetMetadataCommand;
|
|
34
|
+
//# sourceMappingURL=GetResultSetMetadataCommand.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetResultSetMetadataCommand.js","sourceRoot":"","sources":["../../../lib/hive/Commands/GetResultSetMetadataCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,8DAAwC;AAWxC;IAAyD,+CAAW;IAApE;;IAMA,CAAC;IALG,6CAAO,GAAP,UAAQ,2BAAwD;QAC5D,IAAM,OAAO,GAAG,IAAI,IAAI,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,2BAA2B,CAAC,CAAC;QAEjG,OAAO,IAAI,CAAC,cAAc,CAA+B,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IACxG,CAAC;IACL,kCAAC;AAAD,CAAC,AAND,CAAyD,qBAAW,GAMnE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import BaseCommand from "./BaseCommand";
|
|
2
|
+
import { Status, SessionHandle, OperationHandle } from "../Types";
|
|
3
|
+
export declare type GetSchemasRequest = {
|
|
4
|
+
sessionHandle: SessionHandle;
|
|
5
|
+
catalogName?: string;
|
|
6
|
+
schemaName?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare type GetSchemasResponse = {
|
|
9
|
+
status: Status;
|
|
10
|
+
operationHandle: OperationHandle;
|
|
11
|
+
};
|
|
12
|
+
export default class GetSchemasCommand extends BaseCommand {
|
|
13
|
+
execute(data: GetSchemasRequest): Promise<GetSchemasResponse>;
|
|
14
|
+
}
|