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 +14 -5
- package/browser.js +2 -0
- package/browser.js.map +1 -1
- package/index.d.ts +14 -5
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -79,12 +79,21 @@ export interface DdbArrayVectorBlock {
|
|
|
79
79
|
data: DdbVectorValue;
|
|
80
80
|
}
|
|
81
81
|
export interface DdbMatrixValue {
|
|
82
|
-
rows: DdbObj
|
|
83
|
-
cols: DdbObj
|
|
82
|
+
rows: DdbObj<DdbVectorValue>;
|
|
83
|
+
cols: DdbObj<DdbVectorValue>;
|
|
84
84
|
data: DdbVectorValue;
|
|
85
85
|
}
|
|
86
|
-
export declare type
|
|
87
|
-
|
|
86
|
+
export declare type DdbScalarValue = null | boolean | number | bigint | string | Uint8Array | // uuid, ipaddr, int128, blob
|
|
87
|
+
[
|
|
88
|
+
number,
|
|
89
|
+
number
|
|
90
|
+
] | // complex, point
|
|
91
|
+
DdbFunctionDefValue;
|
|
92
|
+
export declare type DdbVectorValue = Uint8Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | BigInt64Array | string[] | // string[]
|
|
93
|
+
Uint8Array[] | // blob
|
|
94
|
+
DdbObj[] | // any
|
|
95
|
+
DdbSymbolExtendedValue | DdbArrayVectorBlock[];
|
|
96
|
+
export declare type DdbValue = DdbScalarValue | DdbVectorValue | DdbMatrixValue;
|
|
88
97
|
export declare const nulls: {
|
|
89
98
|
readonly int8: -128;
|
|
90
99
|
readonly int16: -32768;
|
|
@@ -137,7 +146,7 @@ export declare class DdbObj<T extends DdbValue = DdbValue> {
|
|
|
137
146
|
type: DdbType;
|
|
138
147
|
});
|
|
139
148
|
static parse(buf: Uint8Array, le: boolean): DdbObj<DdbValue>;
|
|
140
|
-
static parse_scalar(buf: Uint8Array, le: boolean, type: DdbType): [number,
|
|
149
|
+
static parse_scalar(buf: Uint8Array, le: boolean, type: DdbType): [number, DdbScalarValue];
|
|
141
150
|
/** parse: rows, cols, items
|
|
142
151
|
返回的 ddbobj.length 不包括 vector 的 type 和 form
|
|
143
152
|
*/
|
package/index.js
CHANGED
|
@@ -520,6 +520,7 @@ class DdbObj {
|
|
|
520
520
|
case DdbType.minute:
|
|
521
521
|
case DdbType.second:
|
|
522
522
|
case DdbType.datetime:
|
|
523
|
+
case DdbType.datehour:
|
|
523
524
|
return [
|
|
524
525
|
4 * length,
|
|
525
526
|
new Int32Array(buf.buffer.slice(buf.byteOffset, buf.byteOffset + 4 * length))
|
|
@@ -823,6 +824,7 @@ class DdbObj {
|
|
|
823
824
|
case DdbType.minute:
|
|
824
825
|
case DdbType.second:
|
|
825
826
|
case DdbType.datetime:
|
|
827
|
+
case DdbType.datehour:
|
|
826
828
|
return [value];
|
|
827
829
|
case DdbType.float:
|
|
828
830
|
return [value];
|