@tdengine/websocket 3.1.0 → 3.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 (52) hide show
  1. package/lib/example/all_type_query.d.ts +2 -0
  2. package/lib/example/all_type_query.d.ts.map +1 -0
  3. package/lib/example/all_type_query.js +89 -0
  4. package/lib/example/all_type_stmt.d.ts +2 -0
  5. package/lib/example/all_type_stmt.d.ts.map +1 -0
  6. package/lib/example/all_type_stmt.js +130 -0
  7. package/lib/example/basicBatchTmq.d.ts +2 -0
  8. package/lib/example/basicBatchTmq.d.ts.map +1 -0
  9. package/lib/example/basicBatchTmq.js +129 -0
  10. package/lib/example/basicSql.js +9 -7
  11. package/lib/example/basicStmt.js +34 -20
  12. package/lib/example/basicTmq.js +22 -20
  13. package/lib/src/client/wsClient.d.ts +1 -1
  14. package/lib/src/client/wsClient.d.ts.map +1 -1
  15. package/lib/src/client/wsClient.js +5 -2
  16. package/lib/src/client/wsConnector.js +2 -2
  17. package/lib/src/client/wsResponse.d.ts +10 -2
  18. package/lib/src/client/wsResponse.d.ts.map +1 -1
  19. package/lib/src/client/wsResponse.js +30 -3
  20. package/lib/src/common/constant.d.ts +23 -1
  21. package/lib/src/common/constant.d.ts.map +1 -1
  22. package/lib/src/common/constant.js +25 -22
  23. package/lib/src/common/log.js +1 -1
  24. package/lib/src/common/taosResult.d.ts +11 -5
  25. package/lib/src/common/taosResult.d.ts.map +1 -1
  26. package/lib/src/common/taosResult.js +106 -76
  27. package/lib/src/common/utils.d.ts +2 -0
  28. package/lib/src/common/utils.d.ts.map +1 -1
  29. package/lib/src/common/utils.js +34 -1
  30. package/lib/src/sql/wsRows.d.ts.map +1 -1
  31. package/lib/src/sql/wsRows.js +21 -10
  32. package/lib/src/sql/wsSql.d.ts.map +1 -1
  33. package/lib/src/sql/wsSql.js +29 -19
  34. package/lib/src/stmt/wsParams.js +40 -40
  35. package/lib/src/tmq/constant.d.ts +15 -0
  36. package/lib/src/tmq/constant.d.ts.map +1 -1
  37. package/lib/src/tmq/constant.js +17 -1
  38. package/lib/src/tmq/tmqResponse.d.ts +20 -8
  39. package/lib/src/tmq/tmqResponse.d.ts.map +1 -1
  40. package/lib/src/tmq/tmqResponse.js +214 -89
  41. package/lib/src/tmq/wsTmq.d.ts.map +1 -1
  42. package/lib/src/tmq/wsTmq.js +24 -21
  43. package/lib/test/bulkPulling/log.test.d.ts +2 -0
  44. package/lib/test/bulkPulling/log.test.d.ts.map +1 -0
  45. package/lib/test/bulkPulling/log.test.js +44 -0
  46. package/lib/test/bulkPulling/schemaless.test.js +7 -6
  47. package/lib/test/bulkPulling/sql.test.js +38 -18
  48. package/lib/test/bulkPulling/stmt.func.test.js +71 -55
  49. package/lib/test/bulkPulling/stmt.type.test.js +1 -5
  50. package/lib/test/bulkPulling/tmq.test.js +16 -15
  51. package/lib/test/bulkPulling/wsConnectPool.test.js +9 -2
  52. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEmpty = exports.sleep = exports.getUrl = void 0;
3
+ exports.zigzagDecode = exports.getBinarySql = exports.isEmpty = exports.sleep = exports.getUrl = void 0;
4
4
  function getUrl(wsConfig) {
5
5
  let url = new URL(wsConfig.getUrl());
6
6
  if (wsConfig.getUser()) {
@@ -31,3 +31,36 @@ function isEmpty(value) {
31
31
  return false;
32
32
  }
33
33
  exports.isEmpty = isEmpty;
34
+ function getBinarySql(action, reqId, resultId, sql) {
35
+ // construct msg
36
+ if (sql) {
37
+ const encoder = new TextEncoder();
38
+ const buffer = encoder.encode(sql);
39
+ let messageLen = 30 + buffer.length;
40
+ let sqlBuffer = new ArrayBuffer(messageLen);
41
+ let sqlView = new DataView(sqlBuffer);
42
+ sqlView.setBigUint64(0, reqId, true);
43
+ sqlView.setBigInt64(8, resultId, true);
44
+ sqlView.setBigInt64(16, action, true);
45
+ sqlView.setInt16(24, 1, true);
46
+ sqlView.setInt32(26, buffer.length, true);
47
+ let offset = 30;
48
+ for (let i = 0; i < buffer.length; i++) {
49
+ sqlView.setUint8(offset + i, buffer[i]);
50
+ }
51
+ return sqlBuffer;
52
+ }
53
+ let messageLen = 26;
54
+ let sqlBuffer = new ArrayBuffer(messageLen);
55
+ let sqlView = new DataView(sqlBuffer);
56
+ sqlView.setBigUint64(0, reqId, true);
57
+ sqlView.setBigInt64(8, resultId, true);
58
+ sqlView.setBigInt64(16, action, true);
59
+ sqlView.setInt16(24, 1, true);
60
+ return sqlBuffer;
61
+ }
62
+ exports.getBinarySql = getBinarySql;
63
+ function zigzagDecode(n) {
64
+ return (n >> 1) ^ (-(n & 1));
65
+ }
66
+ exports.zigzagDecode = zigzagDecode;
@@ -1 +1 @@
1
- {"version":3,"file":"wsRows.d.ts","sourceRoot":"","sources":["../../../src/sql/wsRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAc,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAG9C,qBAAa,MAAM;IACf,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,QAAQ,CAAW;gBACf,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe;IAOlD,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;YAoBhB,YAAY;IAkB1B,OAAO,IAAG,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI;IAIpC,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS;IAc3B,KAAK,IAAG,OAAO,CAAC,IAAI,CAAC;CAQ9B"}
1
+ {"version":3,"file":"wsRows.d.ts","sourceRoot":"","sources":["../../../src/sql/wsRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA0B,MAAM,sBAAsB,CAAC;AAE5E,OAAO,EAAwB,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAM9C,qBAAa,MAAM;IACf,OAAO,CAAC,SAAS,CAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAkB;IACnD,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,QAAQ,CAAW;gBAEf,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe;IAOlD,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC;YAoBhB,YAAY;IA4B1B,OAAO,IAAG,KAAK,CAAC,YAAY,CAAC,GAAG,IAAI;IAIpC,OAAO,IAAI,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS;IAc3B,KAAK,IAAG,OAAO,CAAC,IAAI,CAAC;CAQ9B"}
@@ -6,7 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.WSRows = void 0;
7
7
  const taosResult_1 = require("../common/taosResult");
8
8
  const wsError_1 = require("../common/wsError");
9
+ const wsResponse_1 = require("../client/wsResponse");
9
10
  const log_1 = __importDefault(require("../common/log"));
11
+ const reqid_1 = require("../common/reqid");
12
+ const utils_1 = require("../common/utils");
13
+ const constant_1 = require("../common/constant");
10
14
  class WSRows {
11
15
  constructor(wsInterface, resp) {
12
16
  this._wsClient = wsInterface;
@@ -33,15 +37,22 @@ class WSRows {
33
37
  }
34
38
  async getBlockData() {
35
39
  try {
36
- let wsFetchResponse = await this._wsClient.fetch(this._wsQueryResponse);
37
- log_1.default.debug("[wsQuery.execute.wsFetchResponse]==>\n", wsFetchResponse);
38
- if (wsFetchResponse.completed) {
39
- this.close();
40
- this._taosResult.setData(null);
41
- }
42
- else {
43
- this._taosResult.setRowsAndTime(wsFetchResponse.rows, wsFetchResponse.timing);
44
- return await this._wsClient.fetchBlock(wsFetchResponse, this._taosResult);
40
+ if (this._wsQueryResponse.id) {
41
+ let bigintReqId = BigInt(reqid_1.ReqId.getReqID());
42
+ let resp = await this._wsClient.sendBinaryMsg(bigintReqId, "binary_query", (0, utils_1.getBinarySql)(constant_1.FetchRawBlockMessage, bigintReqId, BigInt(this._wsQueryResponse.id)), false, true);
43
+ this._taosResult.addTotalTime(resp.totalTime);
44
+ let wsResponse = new wsResponse_1.WSFetchBlockResponse(resp.msg);
45
+ if (wsResponse.code != 0) {
46
+ log_1.default.error("Executing SQL statement returns error: ", wsResponse.code, wsResponse.message);
47
+ throw new wsError_1.TaosResultError(wsResponse.code, wsResponse.message);
48
+ }
49
+ if (wsResponse.finished == 1) {
50
+ this.close();
51
+ this._taosResult.setData(null);
52
+ }
53
+ else {
54
+ (0, taosResult_1.parseBlock)(wsResponse, this._taosResult);
55
+ }
45
56
  }
46
57
  return this._taosResult;
47
58
  }
@@ -70,7 +81,7 @@ class WSRows {
70
81
  return;
71
82
  }
72
83
  this._isClose = true;
73
- await this._wsClient.freeResult(this._wsQueryResponse);
84
+ this._wsClient.freeResult(this._wsQueryResponse);
74
85
  }
75
86
  }
76
87
  exports.WSRows = WSRows;
@@ -1 +1 @@
1
- {"version":3,"file":"wsSql.d.ts","sourceRoot":"","sources":["../../../src/sql/wsSql.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAG3C,OAAO,EAAE,SAAS,EAAyB,eAAe,EAAE,MAAM,WAAW,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAKvC,qBAAa,KAAK;IACd,OAAO,CAAC,QAAQ,CAAU;IAC1B,OAAO,CAAC,SAAS,CAAW;gBAChB,QAAQ,EAAC,QAAQ;WAMhB,IAAI,CAAC,QAAQ,EAAC,QAAQ,GAAE,OAAO,CA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I,OAAO,CAAC,MAAM,CAAC;IAI1B,KAAK,IAAG,OAAO,CAAC,IAAI,CAAC;IAIrB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA0BnI,QAAQ,CAAC,KAAK,CAAC,EAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAuBxC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,MAAM,GAAC,MAAuB,GAAG,OAAO,CAAC,UAAU,CAAC;YA4C9E,uBAAuB;IAa/B,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAWxD,OAAO,CAAC,MAAM;CAajB"}
@@ -9,6 +9,7 @@ const taosResult_1 = require("../common/taosResult");
9
9
  const wsClient_1 = require("../client/wsClient");
10
10
  const wsError_1 = require("../common/wsError");
11
11
  const utils_1 = require("../common/utils");
12
+ const wsResponse_1 = require("../client/wsResponse");
12
13
  const wsStmt_1 = require("../stmt/wsStmt");
13
14
  const reqid_1 = require("../common/reqid");
14
15
  const constant_1 = require("../common/constant");
@@ -93,33 +94,41 @@ class WsSql {
93
94
  }
94
95
  throw (new wsError_1.TDWebSocketClientError(wsError_1.ErrorCode.ERR_CONNECTION_CLOSED, "stmt connect closed"));
95
96
  }
96
- async exec(sql, reqId, action = 'query') {
97
+ async exec(sql, reqId, action = 'binary_query') {
97
98
  try {
98
- let wsQueryResponse = await this._wsClient.exec(this.getSql(sql, reqId, action));
99
+ let bigintReqId = BigInt(reqid_1.ReqId.getReqID(reqId));
100
+ let wsQueryResponse = await this._wsClient.sendBinaryMsg(bigintReqId, action, (0, utils_1.getBinarySql)(constant_1.BinaryQueryMessage, bigintReqId, BigInt(0), sql));
99
101
  let taosResult = new taosResult_1.TaosResult(wsQueryResponse);
100
102
  if (wsQueryResponse.is_update) {
101
103
  return taosResult;
102
104
  }
103
105
  else {
104
- try {
105
- while (true) {
106
- let wsFetchResponse = await this._wsClient.fetch(wsQueryResponse);
107
- if (wsFetchResponse.completed) {
108
- break;
109
- }
110
- else {
111
- taosResult.setRowsAndTime(wsFetchResponse.rows, wsFetchResponse.timing);
112
- taosResult = await this._wsClient.fetchBlock(wsFetchResponse, taosResult);
106
+ if (wsQueryResponse.id) {
107
+ try {
108
+ while (true) {
109
+ let bigintReqId = BigInt(reqid_1.ReqId.getReqID(reqId));
110
+ let resp = await this._wsClient.sendBinaryMsg(bigintReqId, action, (0, utils_1.getBinarySql)(constant_1.FetchRawBlockMessage, bigintReqId, BigInt(wsQueryResponse.id)), false, true);
111
+ taosResult.addTotalTime(resp.totalTime);
112
+ let wsResponse = new wsResponse_1.WSFetchBlockResponse(resp.msg);
113
+ if (wsResponse.code != 0) {
114
+ log_1.default.error("Executing SQL statement returns error: ", wsResponse.code, wsResponse.message);
115
+ throw new wsError_1.TaosResultError(wsResponse.code, wsResponse.message);
116
+ }
117
+ if (wsResponse.finished == 1) {
118
+ break;
119
+ }
120
+ (0, taosResult_1.parseBlock)(wsResponse, taosResult);
113
121
  }
122
+ return taosResult;
123
+ }
124
+ catch (err) {
125
+ throw new wsError_1.TaosResultError(err.code, err.message);
126
+ }
127
+ finally {
128
+ this._wsClient.freeResult(wsQueryResponse);
114
129
  }
115
- return taosResult;
116
- }
117
- catch (err) {
118
- throw new wsError_1.TaosResultError(err.code, err.message);
119
- }
120
- finally {
121
- this._wsClient.freeResult(wsQueryResponse);
122
130
  }
131
+ throw new wsError_1.TaosResultError(wsError_1.ErrorCode.ERR_INVALID_FETCH_MESSAGE_DATA, "The result data of the query is incorrect");
123
132
  }
124
133
  }
125
134
  catch (err) {
@@ -141,7 +150,8 @@ class WsSql {
141
150
  }
142
151
  async query(sql, reqId) {
143
152
  try {
144
- let wsQueryResponse = await this._wsClient.exec(this.getSql(sql, reqId));
153
+ let bigintReqId = BigInt(reqid_1.ReqId.getReqID(reqId));
154
+ let wsQueryResponse = await this._wsClient.sendBinaryMsg(bigintReqId, 'binary_query', (0, utils_1.getBinarySql)(constant_1.BinaryQueryMessage, bigintReqId, BigInt(0), sql));
145
155
  return new wsRows_1.WSRows(this._wsClient, wsQueryResponse);
146
156
  }
147
157
  catch (err) {
@@ -37,97 +37,97 @@ class StmtBindParams {
37
37
  if (!params || params.length == 0) {
38
38
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetBooleanColumn params is invalid!");
39
39
  }
40
- let arrayBuffer = this.encodeDigitColumns(params, "boolean", constant_1.TDengineTypeLength['BOOL'], constant_1.TDengineTypeCode['BOOL']);
41
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['BOOL'], constant_1.TDengineTypeLength['BOOL']));
40
+ let arrayBuffer = this.encodeDigitColumns(params, "boolean", constant_1.TDengineTypeLength['BOOL'], constant_1.TDengineTypeCode.BOOL);
41
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.BOOL, constant_1.TDengineTypeLength['BOOL']));
42
42
  }
43
43
  setTinyInt(params) {
44
44
  if (!params || params.length == 0) {
45
45
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetTinyIntColumn params is invalid!");
46
46
  }
47
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['TINYINT'], constant_1.TDengineTypeCode['TINYINT']);
48
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['TINYINT'], constant_1.TDengineTypeLength['TINYINT']));
47
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['TINYINT'], constant_1.TDengineTypeCode.TINYINT);
48
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.TINYINT, constant_1.TDengineTypeLength['TINYINT']));
49
49
  }
50
50
  setUTinyInt(params) {
51
51
  if (!params || params.length == 0) {
52
52
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetUTinyIntColumn params is invalid!");
53
53
  }
54
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['TINYINT UNSIGNED'], constant_1.TDengineTypeCode['TINYINT UNSIGNED']);
55
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['TINYINT UNSIGNED'], constant_1.TDengineTypeLength['TINYINT UNSIGNED']));
54
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['TINYINT UNSIGNED'], constant_1.TDengineTypeCode.TINYINT_UNSIGNED);
55
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.TINYINT_UNSIGNED, constant_1.TDengineTypeLength['TINYINT UNSIGNED']));
56
56
  }
57
57
  setSmallInt(params) {
58
58
  if (!params || params.length == 0) {
59
59
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetSmallIntColumn params is invalid!");
60
60
  }
61
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['SMALLINT'], constant_1.TDengineTypeCode['SMALLINT']);
62
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['SMALLINT'], constant_1.TDengineTypeLength['SMALLINT']));
61
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['SMALLINT'], constant_1.TDengineTypeCode.SMALLINT);
62
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.SMALLINT, constant_1.TDengineTypeLength['SMALLINT']));
63
63
  }
64
64
  setUSmallInt(params) {
65
65
  if (!params || params.length == 0) {
66
66
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetSmallIntColumn params is invalid!");
67
67
  }
68
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['SMALLINT UNSIGNED'], constant_1.TDengineTypeCode['SMALLINT UNSIGNED']);
69
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['SMALLINT UNSIGNED'], constant_1.TDengineTypeLength['SMALLINT UNSIGNED']));
68
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['SMALLINT UNSIGNED'], constant_1.TDengineTypeCode.SMALLINT_UNSIGNED);
69
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.SMALLINT_UNSIGNED, constant_1.TDengineTypeLength['SMALLINT UNSIGNED']));
70
70
  }
71
71
  setInt(params) {
72
72
  if (!params || params.length == 0) {
73
73
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetIntColumn params is invalid!");
74
74
  }
75
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['INT'], constant_1.TDengineTypeCode['INT']);
76
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['INT'], constant_1.TDengineTypeLength['INT']));
75
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['INT'], constant_1.TDengineTypeCode.INT);
76
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.INT, constant_1.TDengineTypeLength['INT']));
77
77
  }
78
78
  setUInt(params) {
79
79
  if (!params || params.length == 0) {
80
80
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetUIntColumn params is invalid!");
81
81
  }
82
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['INT UNSIGNED'], constant_1.TDengineTypeCode['INT UNSIGNED']);
83
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['INT UNSIGNED'], constant_1.TDengineTypeLength['INT UNSIGNED']));
82
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['INT UNSIGNED'], constant_1.TDengineTypeCode.INT_UNSIGNED);
83
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.INT_UNSIGNED, constant_1.TDengineTypeLength['INT UNSIGNED']));
84
84
  }
85
85
  setBigint(params) {
86
86
  if (!params || params.length == 0) {
87
87
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetBigIntColumn params is invalid!");
88
88
  }
89
- let arrayBuffer = this.encodeDigitColumns(params, "bigint", constant_1.TDengineTypeLength['BIGINT'], constant_1.TDengineTypeCode['BIGINT']);
90
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['INT'], constant_1.TDengineTypeLength['BIGINT']));
89
+ let arrayBuffer = this.encodeDigitColumns(params, "bigint", constant_1.TDengineTypeLength['BIGINT'], constant_1.TDengineTypeCode.BIGINT);
90
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.INT, constant_1.TDengineTypeLength['BIGINT']));
91
91
  }
92
92
  setUBigint(params) {
93
93
  if (!params || params.length == 0) {
94
94
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetUBigIntColumn params is invalid!");
95
95
  }
96
- let arrayBuffer = this.encodeDigitColumns(params, "bigint", constant_1.TDengineTypeLength['BIGINT UNSIGNED'], constant_1.TDengineTypeCode['BIGINT UNSIGNED']);
97
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['BIGINT UNSIGNED'], constant_1.TDengineTypeLength['BIGINT UNSIGNED']));
96
+ let arrayBuffer = this.encodeDigitColumns(params, "bigint", constant_1.TDengineTypeLength['BIGINT UNSIGNED'], constant_1.TDengineTypeCode.BIGINT_UNSIGNED);
97
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.BIGINT_UNSIGNED, constant_1.TDengineTypeLength['BIGINT UNSIGNED']));
98
98
  }
99
99
  setFloat(params) {
100
100
  if (!params || params.length == 0) {
101
101
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetFloatColumn params is invalid!");
102
102
  }
103
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['FLOAT'], constant_1.TDengineTypeCode['FLOAT']);
104
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['FLOAT'], constant_1.TDengineTypeLength['FLOAT']));
103
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['FLOAT'], constant_1.TDengineTypeCode.FLOAT);
104
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.FLOAT, constant_1.TDengineTypeLength['FLOAT']));
105
105
  }
106
106
  setDouble(params) {
107
107
  if (!params || params.length == 0) {
108
108
  throw new wsError_1.TaosError(wsError_1.ErrorCode.ERR_INVALID_PARAMS, "SetDoubleColumn params is invalid!");
109
109
  }
110
- let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['DOUBLE'], constant_1.TDengineTypeCode['DOUBLE']);
111
- this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode['DOUBLE'], constant_1.TDengineTypeLength['DOUBLE']));
110
+ let arrayBuffer = this.encodeDigitColumns(params, "number", constant_1.TDengineTypeLength['DOUBLE'], constant_1.TDengineTypeCode.DOUBLE);
111
+ this._params.push(new ColumnInfo(arrayBuffer, constant_1.TDengineTypeCode.DOUBLE, constant_1.TDengineTypeLength['DOUBLE']));
112
112
  }
113
113
  setVarchar(params) {
114
114
  let data = this.encodeVarLengthColumn(params);
115
- this._params.push(new ColumnInfo(data, constant_1.TDengineTypeCode['VARCHAR'], 0));
115
+ this._params.push(new ColumnInfo(data, constant_1.TDengineTypeCode.VARCHAR, 0));
116
116
  }
117
117
  setBinary(params) {
118
- this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode['BINARY'], 0));
118
+ this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode.BINARY, 0));
119
119
  }
120
120
  setNchar(params) {
121
- this._params.push(new ColumnInfo(this.encodeNcharColumn(params), constant_1.TDengineTypeCode['NCHAR'], 0));
121
+ this._params.push(new ColumnInfo(this.encodeNcharColumn(params), constant_1.TDengineTypeCode.NCHAR, 0));
122
122
  }
123
123
  setJson(params) {
124
- this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode['JSON'], 0));
124
+ this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode.JSON, 0));
125
125
  }
126
126
  setVarBinary(params) {
127
- this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode['VARBINARY'], 0));
127
+ this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode.VARBINARY, 0));
128
128
  }
129
129
  setGeometry(params) {
130
- this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode['GEOMETRY'], 0));
130
+ this._params.push(new ColumnInfo(this.encodeVarLengthColumn(params), constant_1.TDengineTypeCode.GEOMETRY, 0));
131
131
  }
132
132
  setTimestamp(params) {
133
133
  if (!params || params.length == 0) {
@@ -201,7 +201,7 @@ class StmtBindParams {
201
201
  }
202
202
  }
203
203
  this._dataTotalLen += arrayBuffer.byteLength;
204
- this._params.push(new ColumnInfo([constant_1.TDengineTypeLength['TIMESTAMP'] * params.length, arrayBuffer], constant_1.TDengineTypeCode['TIMESTAMP'], constant_1.TDengineTypeLength['TIMESTAMP']));
204
+ this._params.push(new ColumnInfo([constant_1.TDengineTypeLength['TIMESTAMP'] * params.length, arrayBuffer], constant_1.TDengineTypeCode.TIMESTAMP, constant_1.TDengineTypeLength['TIMESTAMP']));
205
205
  }
206
206
  encodeDigitColumns(params, dataType = 'number', typeLen, columnType) {
207
207
  let bitMapLen = (0, taosResult_1.bitmapLen)(params.length);
@@ -220,7 +220,7 @@ class StmtBindParams {
220
220
  if (!(0, utils_1.isEmpty)(params[i])) {
221
221
  if (typeof params[i] == dataType) {
222
222
  switch (columnType) {
223
- case constant_1.TDengineTypeCode['BOOL']: {
223
+ case constant_1.TDengineTypeCode.BOOL: {
224
224
  if (params[i]) {
225
225
  dataBuffer.setInt8(i, 1);
226
226
  }
@@ -229,43 +229,43 @@ class StmtBindParams {
229
229
  }
230
230
  break;
231
231
  }
232
- case constant_1.TDengineTypeCode['TINYINT']: {
232
+ case constant_1.TDengineTypeCode.TINYINT: {
233
233
  dataBuffer.setInt8(i, params[i]);
234
234
  break;
235
235
  }
236
- case constant_1.TDengineTypeCode['TINYINT UNSIGNED']: {
236
+ case constant_1.TDengineTypeCode.TINYINT_UNSIGNED: {
237
237
  dataBuffer.setUint8(i, params[i]);
238
238
  break;
239
239
  }
240
- case constant_1.TDengineTypeCode['SMALLINT']: {
240
+ case constant_1.TDengineTypeCode.SMALLINT: {
241
241
  dataBuffer.setInt16(i * 2, params[i], true);
242
242
  break;
243
243
  }
244
- case constant_1.TDengineTypeCode['SMALLINT UNSIGNED']: {
244
+ case constant_1.TDengineTypeCode.SMALLINT_UNSIGNED: {
245
245
  dataBuffer.setUint16(i * 2, params[i], true);
246
246
  break;
247
247
  }
248
- case constant_1.TDengineTypeCode['INT']: {
248
+ case constant_1.TDengineTypeCode.INT: {
249
249
  dataBuffer.setInt32(i * 4, params[i], true);
250
250
  break;
251
251
  }
252
- case constant_1.TDengineTypeCode['INT UNSIGNED']: {
252
+ case constant_1.TDengineTypeCode.INT_UNSIGNED: {
253
253
  dataBuffer.setUint32(i * 4, params[i], true);
254
254
  break;
255
255
  }
256
- case constant_1.TDengineTypeCode['BIGINT']: {
256
+ case constant_1.TDengineTypeCode.BIGINT: {
257
257
  dataBuffer.setBigInt64(i * 8, params[i], true);
258
258
  break;
259
259
  }
260
- case constant_1.TDengineTypeCode['BIGINT UNSIGNED']: {
260
+ case constant_1.TDengineTypeCode.BIGINT_UNSIGNED: {
261
261
  dataBuffer.setBigUint64(i * 8, params[i], true);
262
262
  break;
263
263
  }
264
- case constant_1.TDengineTypeCode['FLOAT']: {
264
+ case constant_1.TDengineTypeCode.FLOAT: {
265
265
  dataBuffer.setFloat32(i * 4, params[i], true);
266
266
  break;
267
267
  }
268
- case constant_1.TDengineTypeCode['DOUBLE']: {
268
+ case constant_1.TDengineTypeCode.DOUBLE: {
269
269
  dataBuffer.setFloat64(i * 8, params[i], true);
270
270
  break;
271
271
  }
@@ -82,4 +82,19 @@ export declare class TMQMessageType {
82
82
  static ListTopics: string;
83
83
  static ResDataType: number;
84
84
  }
85
+ export declare class TMQBlockInfo {
86
+ rawBlock?: ArrayBuffer;
87
+ precision?: number;
88
+ schema: Array<TMQRawDataSchema>;
89
+ tableName?: string;
90
+ constructor();
91
+ }
92
+ export declare class TMQRawDataSchema {
93
+ colType: number;
94
+ flag: number;
95
+ bytes: bigint;
96
+ colID: number;
97
+ name: string;
98
+ constructor();
99
+ }
85
100
  //# sourceMappingURL=constant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constant.d.ts","sourceRoot":"","sources":["../../../src/tmq/constant.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACrB,OAAc,QAAQ,EAAE,MAAM,CAAc;IAE5C,OAAc,SAAS,EAAE,MAAM,CAAe;IAE9C;;OAEG;IACH,OAAc,kBAAkB,EAAE,MAAM,CAAwB;IAEhE;;OAEG;IACH,OAAc,uBAAuB,EAAE,MAAM,CAA6B;IAE1E;;OAEG;IACH,OAAc,iBAAiB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;IACH,OAAc,mBAAmB,EAAE,MAAM,CAAyB;IAElE;;OAEG;IACH,OAAc,iBAAiB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;IACH,OAAc,kBAAkB,EAAE,MAAM,CAAwB;IAEhE;;OAEG;IACH,OAAc,2BAA2B,EAAE,MAAM,CAAiC;IAElF;;OAEG;IACH,OAAc,UAAU,EAAE,MAAM,CA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,gBAAgB,CAAC,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;;CAInB;AAED,qBAAa,gBAAgB;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAI,MAAM,CAAC;IACf,KAAK,EAAG,MAAM,CAAC;IACf,KAAK,EAAG,MAAM,CAAA;IACd,IAAI,EAAG,MAAM,CAAC;;CASd"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TMQMessageType = exports.TMQConstants = void 0;
3
+ exports.TMQRawDataSchema = exports.TMQBlockInfo = exports.TMQMessageType = exports.TMQConstants = void 0;
4
4
  class TMQConstants {
5
5
  }
6
6
  exports.TMQConstants = TMQConstants;
@@ -87,3 +87,19 @@ TMQMessageType.Committed = 'committed';
87
87
  TMQMessageType.Position = 'position';
88
88
  TMQMessageType.ListTopics = "list_topics";
89
89
  TMQMessageType.ResDataType = 1;
90
+ class TMQBlockInfo {
91
+ constructor() {
92
+ this.schema = [];
93
+ }
94
+ }
95
+ exports.TMQBlockInfo = TMQBlockInfo;
96
+ class TMQRawDataSchema {
97
+ constructor() {
98
+ this.bytes = BigInt(0);
99
+ this.colID = -1;
100
+ this.colType = -1;
101
+ this.flag = -1;
102
+ this.name = "";
103
+ }
104
+ }
105
+ exports.TMQRawDataSchema = TMQRawDataSchema;
@@ -1,5 +1,6 @@
1
1
  import { WSQueryResponse } from "../client/wsResponse";
2
2
  import { MessageResp, TaosResult } from "../common/taosResult";
3
+ import { TMQBlockInfo, TMQRawDataSchema } from "./constant";
3
4
  export declare class WsPollResponse {
4
5
  code: number;
5
6
  message: string;
@@ -23,16 +24,28 @@ export declare class WsTmqQueryResponse extends WSQueryResponse {
23
24
  constructor(resp: MessageResp);
24
25
  }
25
26
  export declare class TaosTmqResult extends TaosResult {
26
- topic: string;
27
27
  database: string;
28
28
  vgroup_id: number;
29
- table_name: string;
30
- constructor(resp: WsTmqQueryResponse, pollResp: WsPollResponse);
29
+ constructor(pollResp: WsPollResponse);
31
30
  }
32
- export declare class WSTmqFetchBlockResponse {
33
- totalTime: number;
34
- blockData: ArrayBuffer;
35
- constructor(resp: MessageResp);
31
+ export declare class WSTmqFetchBlockInfo {
32
+ withTableName?: boolean;
33
+ withSchema?: boolean;
34
+ blockInfos?: Array<TMQBlockInfo>;
35
+ schema: Array<TMQRawDataSchema>;
36
+ tableName?: string;
37
+ taosResult: TaosResult;
38
+ schemaLen: number;
39
+ rows: number;
40
+ textDecoder: TextDecoder;
41
+ constructor(dataView: DataView, taosResult: TaosResult);
42
+ getRows(): number;
43
+ private skipHead;
44
+ private getTypeSkip;
45
+ private parseBlockInfos;
46
+ private parseSchemaInfo;
47
+ private parseVariableByteInteger;
48
+ private parseTmqBlock;
36
49
  }
37
50
  export declare class AssignmentResp {
38
51
  req_id: number;
@@ -76,5 +89,4 @@ export declare class TopicPartition {
76
89
  end?: number;
77
90
  constructor(msg: any);
78
91
  }
79
- export declare function parseTmqBlock(rows: number, resp: WSTmqFetchBlockResponse, taosResult: TaosResult): TaosResult;
80
92
  //# sourceMappingURL=tmqResponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tmqResponse.d.ts","sourceRoot":"","sources":["../../../src/tmq/tmqResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAwE,MAAM,sBAAsB,CAAC;AAGrI,qBAAa,cAAc;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAC,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAA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