dolphindb 2.0.953 → 2.0.954

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/index.js CHANGED
@@ -421,6 +421,8 @@ class DdbObj {
421
421
  case DdbType.symbol:
422
422
  case DdbType.code:
423
423
  case DdbType.handle:
424
+ // sqlDS 函数会返回包含 datasource 的 any vector
425
+ case DdbType.datasource:
424
426
  case DdbType.functiondef:
425
427
  // mysql 插件 connect 方法会返回 resource 类型的对象
426
428
  case DdbType.resource: {
@@ -655,6 +657,7 @@ class DdbObj {
655
657
  case DdbType.string:
656
658
  case DdbType.symbol:
657
659
  case DdbType.handle:
660
+ case DdbType.datasource:
658
661
  case DdbType.code: {
659
662
  let value = new Array(length);
660
663
  let i_head = 0, i_tail = i_head;
@@ -860,6 +863,7 @@ class DdbObj {
860
863
  case DdbType.symbol:
861
864
  case DdbType.code:
862
865
  case DdbType.handle:
866
+ case DdbType.datasource:
863
867
  case DdbType.resource:
864
868
  return [
865
869
  DdbObj.enc.encode(value),
@@ -996,6 +1000,7 @@ class DdbObj {
996
1000
  case DdbType.string:
997
1001
  case DdbType.symbol:
998
1002
  case DdbType.handle:
1003
+ case DdbType.datasource:
999
1004
  case DdbType.code: {
1000
1005
  let bufs = new Array(length * 2);
1001
1006
  for (let i = 0; i < length; i++) {
@@ -1432,6 +1437,7 @@ export function format(type, value, le, options = {}) {
1432
1437
  case DdbType.functiondef:
1433
1438
  return inspect(value.name, options);
1434
1439
  case DdbType.handle:
1440
+ case DdbType.datasource:
1435
1441
  case DdbType.code:
1436
1442
  case DdbType.resource:
1437
1443
  return inspect(value, options);