dolphindb 2.0.508 → 2.0.509

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/browser.d.ts CHANGED
@@ -76,12 +76,21 @@ export interface DdbArrayVectorBlock {
76
76
  data: DdbVectorValue;
77
77
  }
78
78
  export interface DdbMatrixValue {
79
- rows: DdbObj;
80
- cols: DdbObj;
79
+ rows: DdbObj<DdbVectorValue>;
80
+ cols: DdbObj<DdbVectorValue>;
81
81
  data: DdbVectorValue;
82
82
  }
83
- export declare type DdbValue = null | boolean | number | [number, number] | bigint | string | string[] | Uint8Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | BigInt64Array | Uint8Array[] | DdbObj[] | DdbFunctionDefValue | DdbSymbolExtendedValue | DdbArrayVectorBlock[] | DdbMatrixValue;
84
- export declare type DdbVectorValue = string | string[] | Uint8Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | BigInt64Array | Uint8Array[] | DdbObj[] | DdbSymbolExtendedValue | DdbArrayVectorBlock[];
83
+ export declare type DdbScalarValue = null | boolean | number | bigint | string | Uint8Array | // uuid, ipaddr, int128, blob
84
+ [
85
+ number,
86
+ number
87
+ ] | // complex, point
88
+ DdbFunctionDefValue;
89
+ export declare type DdbVectorValue = Uint8Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | BigInt64Array | string[] | // string[]
90
+ Uint8Array[] | // blob
91
+ DdbObj[] | // any
92
+ DdbSymbolExtendedValue | DdbArrayVectorBlock[];
93
+ export declare type DdbValue = DdbScalarValue | DdbVectorValue | DdbMatrixValue;
85
94
  export declare const nulls: {
86
95
  readonly int8: -128;
87
96
  readonly int16: -32768;
@@ -134,7 +143,7 @@ export declare class DdbObj<T extends DdbValue = DdbValue> {
134
143
  type: DdbType;
135
144
  });
136
145
  static parse(buf: Uint8Array, le: boolean): DdbObj<DdbValue>;
137
- static parse_scalar(buf: Uint8Array, le: boolean, type: DdbType): [number, DdbValue];
146
+ static parse_scalar(buf: Uint8Array, le: boolean, type: DdbType): [number, DdbScalarValue];
138
147
  /** parse: rows, cols, items
139
148
  返回的 ddbobj.length 不包括 vector 的 type 和 form
140
149
  */
package/browser.js CHANGED
@@ -483,6 +483,7 @@ class DdbObj {
483
483
  case DdbType.minute:
484
484
  case DdbType.second:
485
485
  case DdbType.datetime:
486
+ case DdbType.datehour:
486
487
  return [
487
488
  4 * length,
488
489
  new Int32Array(buf.buffer.slice(buf.byteOffset, buf.byteOffset + 4 * length))
@@ -786,6 +787,7 @@ class DdbObj {
786
787
  case DdbType.minute:
787
788
  case DdbType.second:
788
789
  case DdbType.datetime:
790
+ case DdbType.datehour:
789
791
  return [value];
790
792
  case DdbType.float:
791
793
  return [value];