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/index.d.ts
CHANGED
|
@@ -185,7 +185,7 @@ export type DdbStringObj = DdbObj<string>;
|
|
|
185
185
|
export type DdbVectorObj = DdbObj<DdbVectorValue>;
|
|
186
186
|
export type DdbVectorAnyObj = DdbObj<DdbObj[]>;
|
|
187
187
|
export type DdbVectorStringObj = DdbObj<string[]>;
|
|
188
|
-
export type DdbTableObj =
|
|
188
|
+
export type DdbTableObj<TColumns extends DdbVectorObj[] = DdbVectorObj[]> = DdbObj<TColumns>;
|
|
189
189
|
export type DdbDictObj = DdbObj<[DdbVectorObj, DdbVectorObj]>;
|
|
190
190
|
export type DdbMatrixObj = DdbObj<DdbMatrixValue>;
|
|
191
191
|
export type DdbChartObj = DdbObj<DdbChartValue>;
|
|
@@ -324,6 +324,9 @@ export declare class DdbFunction extends DdbObj<DdbFunctionDefValue> {
|
|
|
324
324
|
export declare class DdbVectorInt extends DdbObj<Int32Array> {
|
|
325
325
|
constructor(ints: (number | null)[] | Int32Array, name?: string);
|
|
326
326
|
}
|
|
327
|
+
export declare class DdbVectorLong extends DdbObj<BigInt64Array> {
|
|
328
|
+
constructor(longs: (number | null)[] | BigInt64Array, name?: string);
|
|
329
|
+
}
|
|
327
330
|
export declare class DdbVectorDouble extends DdbObj<Float64Array> {
|
|
328
331
|
constructor(doubles: (number | null)[] | Float64Array, name?: string);
|
|
329
332
|
}
|
package/index.js
CHANGED
|
@@ -1713,6 +1713,24 @@ export class DdbVectorInt extends DdbObj {
|
|
|
1713
1713
|
});
|
|
1714
1714
|
}
|
|
1715
1715
|
}
|
|
1716
|
+
export class DdbVectorLong extends DdbObj {
|
|
1717
|
+
constructor(longs, name) {
|
|
1718
|
+
super({
|
|
1719
|
+
form: DdbForm.vector,
|
|
1720
|
+
type: DdbType.long,
|
|
1721
|
+
rows: longs.length,
|
|
1722
|
+
cols: 1,
|
|
1723
|
+
value: longs instanceof BigInt64Array ?
|
|
1724
|
+
longs
|
|
1725
|
+
:
|
|
1726
|
+
BigInt64Array.from(longs, v => v === null ?
|
|
1727
|
+
nulls.int64
|
|
1728
|
+
:
|
|
1729
|
+
BigInt(v)),
|
|
1730
|
+
name,
|
|
1731
|
+
});
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1716
1734
|
export class DdbVectorDouble extends DdbObj {
|
|
1717
1735
|
constructor(doubles, name) {
|
|
1718
1736
|
super({
|