@databricks/sql 1.0.0 → 1.1.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.
Files changed (105) hide show
  1. package/CHANGELOG.md +16 -1
  2. package/dist/DBSQLClient.d.ts +1 -1
  3. package/dist/DBSQLClient.js +18 -4
  4. package/dist/DBSQLClient.js.map +1 -1
  5. package/dist/DBSQLOperation/SchemaHelper.d.ts +4 -1
  6. package/dist/DBSQLOperation/SchemaHelper.js +25 -4
  7. package/dist/DBSQLOperation/SchemaHelper.js.map +1 -1
  8. package/dist/DBSQLOperation/index.js +2 -3
  9. package/dist/DBSQLOperation/index.js.map +1 -1
  10. package/dist/connection/connections/HttpConnection.js +2 -2
  11. package/dist/connection/connections/HttpConnection.js.map +1 -1
  12. package/dist/index.d.ts +3 -0
  13. package/dist/index.js +8 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/result/IOperationResult.d.ts +2 -1
  16. package/dist/result/JsonResult.d.ts +3 -5
  17. package/dist/result/JsonResult.js +6 -11
  18. package/dist/result/JsonResult.js.map +1 -1
  19. package/dist/utils/buildUserAgentString.js +2 -7
  20. package/dist/utils/buildUserAgentString.js.map +1 -1
  21. package/dist/version.d.ts +2 -0
  22. package/dist/version.js +4 -0
  23. package/dist/version.js.map +1 -0
  24. package/node_modules/async-limiter/.eslintignore +2 -0
  25. package/node_modules/async-limiter/.nycrc +10 -0
  26. package/node_modules/async-limiter/.travis.yml +9 -0
  27. package/node_modules/async-limiter/LICENSE +8 -0
  28. package/node_modules/async-limiter/index.js +67 -0
  29. package/node_modules/async-limiter/package.json +39 -0
  30. package/node_modules/async-limiter/readme.md +132 -0
  31. package/node_modules/browser-or-node/LICENSE +21 -0
  32. package/node_modules/browser-or-node/README.md +63 -0
  33. package/node_modules/browser-or-node/lib/index.js +31 -0
  34. package/node_modules/browser-or-node/package.json +64 -0
  35. package/node_modules/browser-or-node/src/index.js +26 -0
  36. package/node_modules/isomorphic-ws/LICENSE +21 -0
  37. package/node_modules/isomorphic-ws/README.md +58 -0
  38. package/node_modules/isomorphic-ws/browser.js +17 -0
  39. package/node_modules/isomorphic-ws/index.d.ts +8 -0
  40. package/node_modules/isomorphic-ws/node.js +3 -0
  41. package/node_modules/isomorphic-ws/package.json +38 -0
  42. package/node_modules/node-int64/.npmignore +3 -0
  43. package/node_modules/node-int64/Int64.js +268 -0
  44. package/node_modules/node-int64/LICENSE +19 -0
  45. package/node_modules/node-int64/README.md +78 -0
  46. package/node_modules/node-int64/package.json +31 -0
  47. package/node_modules/node-int64/test.js +120 -0
  48. package/node_modules/q/CHANGES.md +800 -0
  49. package/node_modules/q/LICENSE +18 -0
  50. package/node_modules/q/README.md +874 -0
  51. package/node_modules/q/package.json +80 -0
  52. package/node_modules/q/q.js +2076 -0
  53. package/node_modules/q/queue.js +35 -0
  54. package/node_modules/thrift/LICENSE +306 -0
  55. package/node_modules/thrift/README.md +210 -0
  56. package/node_modules/thrift/lib/nodejs/README.md +142 -0
  57. package/node_modules/thrift/lib/nodejs/lib/thrift/binary.js +168 -0
  58. package/node_modules/thrift/lib/nodejs/lib/thrift/binary_protocol.js +367 -0
  59. package/node_modules/thrift/lib/nodejs/lib/thrift/browser.js +49 -0
  60. package/node_modules/thrift/lib/nodejs/lib/thrift/buffered_transport.js +186 -0
  61. package/node_modules/thrift/lib/nodejs/lib/thrift/compact_protocol.js +915 -0
  62. package/node_modules/thrift/lib/nodejs/lib/thrift/connection.js +396 -0
  63. package/node_modules/thrift/lib/nodejs/lib/thrift/create_client.js +54 -0
  64. package/node_modules/thrift/lib/nodejs/lib/thrift/framed_transport.js +185 -0
  65. package/node_modules/thrift/lib/nodejs/lib/thrift/header_protocol.js +258 -0
  66. package/node_modules/thrift/lib/nodejs/lib/thrift/header_transport.js +341 -0
  67. package/node_modules/thrift/lib/nodejs/lib/thrift/http_connection.js +282 -0
  68. package/node_modules/thrift/lib/nodejs/lib/thrift/index.js +76 -0
  69. package/node_modules/thrift/lib/nodejs/lib/thrift/input_buffer_underrun_error.js +32 -0
  70. package/node_modules/thrift/lib/nodejs/lib/thrift/int64_util.js +91 -0
  71. package/node_modules/thrift/lib/nodejs/lib/thrift/json_parse.js +299 -0
  72. package/node_modules/thrift/lib/nodejs/lib/thrift/json_protocol.js +799 -0
  73. package/node_modules/thrift/lib/nodejs/lib/thrift/log.js +87 -0
  74. package/node_modules/thrift/lib/nodejs/lib/thrift/multiplexed_processor.js +63 -0
  75. package/node_modules/thrift/lib/nodejs/lib/thrift/multiplexed_protocol.js +73 -0
  76. package/node_modules/thrift/lib/nodejs/lib/thrift/protocol.js +22 -0
  77. package/node_modules/thrift/lib/nodejs/lib/thrift/server.js +123 -0
  78. package/node_modules/thrift/lib/nodejs/lib/thrift/thrift.js +241 -0
  79. package/node_modules/thrift/lib/nodejs/lib/thrift/transport.js +22 -0
  80. package/node_modules/thrift/lib/nodejs/lib/thrift/web_server.js +567 -0
  81. package/node_modules/thrift/lib/nodejs/lib/thrift/ws_connection.js +286 -0
  82. package/node_modules/thrift/lib/nodejs/lib/thrift/ws_transport.js +206 -0
  83. package/node_modules/thrift/lib/nodejs/lib/thrift/xhr_connection.js +280 -0
  84. package/node_modules/thrift/package.json +76 -0
  85. package/node_modules/ws/LICENSE +21 -0
  86. package/node_modules/ws/README.md +417 -0
  87. package/node_modules/ws/index.js +9 -0
  88. package/node_modules/ws/lib/buffer-util.js +72 -0
  89. package/node_modules/ws/lib/constants.js +10 -0
  90. package/node_modules/ws/lib/event-target.js +170 -0
  91. package/node_modules/ws/lib/extension.js +211 -0
  92. package/node_modules/ws/lib/permessage-deflate.js +516 -0
  93. package/node_modules/ws/lib/receiver.js +513 -0
  94. package/node_modules/ws/lib/sender.js +401 -0
  95. package/node_modules/ws/lib/validation.js +29 -0
  96. package/node_modules/ws/lib/websocket-server.js +369 -0
  97. package/node_modules/ws/lib/websocket.js +828 -0
  98. package/node_modules/ws/package.json +48 -0
  99. package/package.json +9 -3
  100. package/dist/DBSQLOperation/getResult.d.ts +0 -2
  101. package/dist/DBSQLOperation/getResult.js +0 -19
  102. package/dist/DBSQLOperation/getResult.js.map +0 -1
  103. package/dist/result/NullResult.d.ts +0 -4
  104. package/dist/result/NullResult.js +0 -9
  105. package/dist/result/NullResult.js.map +0 -1
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "ws",
3
+ "version": "5.2.3",
4
+ "description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js",
5
+ "keywords": [
6
+ "HyBi",
7
+ "Push",
8
+ "RFC-6455",
9
+ "WebSocket",
10
+ "WebSockets",
11
+ "real-time"
12
+ ],
13
+ "homepage": "https://github.com/websockets/ws",
14
+ "bugs": "https://github.com/websockets/ws/issues",
15
+ "repository": "websockets/ws",
16
+ "author": "Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)",
17
+ "license": "MIT",
18
+ "main": "index.js",
19
+ "files": [
20
+ "index.js",
21
+ "lib"
22
+ ],
23
+ "scripts": {
24
+ "test": "eslint . && nyc --reporter=html --reporter=text mocha test/*.test.js",
25
+ "integration": "eslint . && mocha test/*.integration.js",
26
+ "lint": "eslint ."
27
+ },
28
+ "dependencies": {
29
+ "async-limiter": "~1.0.0"
30
+ },
31
+ "devDependencies": {
32
+ "benchmark": "~2.1.2",
33
+ "bufferutil": "~3.0.0",
34
+ "eslint": "~4.19.0",
35
+ "eslint-config-standard": "~11.0.0",
36
+ "eslint-plugin-import": "~2.12.0",
37
+ "eslint-plugin-node": "~6.0.0",
38
+ "eslint-plugin-promise": "~3.8.0",
39
+ "eslint-plugin-standard": "~3.0.0",
40
+ "mocha": "~5.2.0",
41
+ "nyc": "~12.0.2",
42
+ "utf-8-validate": "~4.0.0"
43
+ }
44
+
45
+ ,"_resolved": "https://registry.npmjs.org/ws/-/ws-5.2.3.tgz"
46
+ ,"_integrity": "sha512-jZArVERrMsKUatIdnLzqvcfydI85dvd/Fp1u/VOpfdDWQ4c9qWXe+VIeAbQ5FrDwciAkr+lzofXLz3Kuf26AOA=="
47
+ ,"_from": "ws@5.2.3"
48
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sql",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Driver for connection to Databricks SQL via Thrift API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,10 +12,12 @@
12
12
  "node": ">=14.0.0"
13
13
  },
14
14
  "scripts": {
15
+ "postinstall": "patch-package",
15
16
  "prepare": "npm run build",
16
17
  "e2e": "nyc --reporter=lcov --report-dir=coverage_e2e mocha --config tests/e2e/.mocharc.js",
17
18
  "test": "nyc --reporter=lcov --report-dir=coverage_unit mocha --config tests/unit/.mocharc.js",
18
- "build": "tsc",
19
+ "update-version": "node bin/update-version.js && prettier --write ./lib/version.ts",
20
+ "build": "npm run update-version && tsc",
19
21
  "watch": "tsc -w",
20
22
  "type-check": "tsc --noEmit",
21
23
  "prettier": "prettier . --check",
@@ -70,8 +72,12 @@
70
72
  "dependencies": {
71
73
  "commander": "^9.3.0",
72
74
  "node-int64": "^0.4.0",
75
+ "patch-package": "^6.5.0",
73
76
  "thrift": "^0.16.0",
74
77
  "uuid": "^9.0.0",
75
78
  "winston": "^3.8.2"
76
- }
79
+ },
80
+ "bundledDependencies": [
81
+ "thrift"
82
+ ]
77
83
  }
@@ -1,2 +0,0 @@
1
- import { TRowSet, TTableSchema } from '../../thrift/TCLIService_types';
2
- export default function getResult(schema: TTableSchema | null, data: Array<TRowSet>): any;
@@ -1,19 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const NullResult_1 = __importDefault(require("../result/NullResult"));
7
- const JsonResult_1 = __importDefault(require("../result/JsonResult"));
8
- function getHandler(schema, data) {
9
- if (schema === null) {
10
- return new NullResult_1.default();
11
- }
12
- return new JsonResult_1.default(schema, data);
13
- }
14
- function getResult(schema, data) {
15
- const handler = getHandler(schema, data);
16
- return handler.getValue();
17
- }
18
- exports.default = getResult;
19
- //# sourceMappingURL=getResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getResult.js","sourceRoot":"","sources":["../../lib/DBSQLOperation/getResult.ts"],"names":[],"mappings":";;;;;AAEA,sEAA8C;AAC9C,sEAA8C;AAE9C,SAAS,UAAU,CAAC,MAA2B,EAAE,IAAoB;IACnE,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,OAAO,IAAI,oBAAU,EAAE,CAAC;KACzB;IACD,OAAO,IAAI,oBAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,SAAwB,SAAS,CAAC,MAA2B,EAAE,IAAoB;IACjF,MAAM,OAAO,GAAG,UAAU,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACzC,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAC;AAC5B,CAAC;AAHD,4BAGC"}
@@ -1,4 +0,0 @@
1
- import IOperationResult from './IOperationResult';
2
- export default class NullResult implements IOperationResult {
3
- getValue(): null;
4
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class NullResult {
4
- getValue() {
5
- return null;
6
- }
7
- }
8
- exports.default = NullResult;
9
- //# sourceMappingURL=NullResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NullResult.js","sourceRoot":"","sources":["../../lib/result/NullResult.ts"],"names":[],"mappings":";;AAEA,MAAqB,UAAU;IAC7B,QAAQ;QACN,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAJD,6BAIC"}