dolphindb 2.0.934 → 2.0.936
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 +4 -1
- package/browser.js +18 -0
- package/browser.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +18 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/browser.d.ts
CHANGED
|
@@ -183,7 +183,7 @@ export type DdbStringObj = DdbObj<string>;
|
|
|
183
183
|
export type DdbVectorObj = DdbObj<DdbVectorValue>;
|
|
184
184
|
export type DdbVectorAnyObj = DdbObj<DdbObj[]>;
|
|
185
185
|
export type DdbVectorStringObj = DdbObj<string[]>;
|
|
186
|
-
export type DdbTableObj =
|
|
186
|
+
export type DdbTableObj<TColumns extends DdbVectorObj[] = DdbVectorObj[]> = DdbObj<TColumns>;
|
|
187
187
|
export type DdbDictObj = DdbObj<[DdbVectorObj, DdbVectorObj]>;
|
|
188
188
|
export type DdbMatrixObj = DdbObj<DdbMatrixValue>;
|
|
189
189
|
export type DdbChartObj = DdbObj<DdbChartValue>;
|
|
@@ -331,6 +331,9 @@ export declare class DdbFunction extends DdbObj<DdbFunctionDefValue> {
|
|
|
331
331
|
export declare class DdbVectorInt extends DdbObj<Int32Array> {
|
|
332
332
|
constructor(ints: (number | null)[] | Int32Array, name?: string);
|
|
333
333
|
}
|
|
334
|
+
export declare class DdbVectorLong extends DdbObj<BigInt64Array> {
|
|
335
|
+
constructor(longs: (number | null)[] | BigInt64Array, name?: string);
|
|
336
|
+
}
|
|
334
337
|
export declare class DdbVectorDouble extends DdbObj<Float64Array> {
|
|
335
338
|
constructor(doubles: (number | null)[] | Float64Array, name?: string);
|
|
336
339
|
}
|
package/browser.js
CHANGED
|
@@ -1727,6 +1727,24 @@ export class DdbVectorInt extends DdbObj {
|
|
|
1727
1727
|
});
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
|
+
export class DdbVectorLong extends DdbObj {
|
|
1731
|
+
constructor(longs, name) {
|
|
1732
|
+
super({
|
|
1733
|
+
form: DdbForm.vector,
|
|
1734
|
+
type: DdbType.long,
|
|
1735
|
+
rows: longs.length,
|
|
1736
|
+
cols: 1,
|
|
1737
|
+
value: longs instanceof BigInt64Array ?
|
|
1738
|
+
longs
|
|
1739
|
+
:
|
|
1740
|
+
BigInt64Array.from(longs, v => v === null ?
|
|
1741
|
+
nulls.int64
|
|
1742
|
+
:
|
|
1743
|
+
BigInt(v)),
|
|
1744
|
+
name,
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1730
1748
|
export class DdbVectorDouble extends DdbObj {
|
|
1731
1749
|
constructor(doubles, name) {
|
|
1732
1750
|
super({
|