dolphindb 2.0.935 → 2.0.937
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 +9 -3
- package/browser.js +27 -0
- package/browser.js.map +1 -1
- package/index.d.ts +9 -3
- package/index.js +27 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
package/browser.d.ts
CHANGED
|
@@ -322,6 +322,9 @@ export declare class DdbTimeStamp extends DdbObj<bigint> {
|
|
|
322
322
|
export declare class DdbNanoTimeStamp extends DdbObj<bigint> {
|
|
323
323
|
constructor(value: bigint | null);
|
|
324
324
|
}
|
|
325
|
+
export declare class DdbBlob extends DdbObj<Uint8Array> {
|
|
326
|
+
constructor(value: Uint8Array | ArrayBuffer);
|
|
327
|
+
}
|
|
325
328
|
export declare class DdbPair extends DdbObj<Int32Array> {
|
|
326
329
|
constructor(l: number | null, r?: number | null);
|
|
327
330
|
}
|
|
@@ -331,6 +334,9 @@ export declare class DdbFunction extends DdbObj<DdbFunctionDefValue> {
|
|
|
331
334
|
export declare class DdbVectorInt extends DdbObj<Int32Array> {
|
|
332
335
|
constructor(ints: (number | null)[] | Int32Array, name?: string);
|
|
333
336
|
}
|
|
337
|
+
export declare class DdbVectorLong extends DdbObj<BigInt64Array> {
|
|
338
|
+
constructor(longs: (number | null)[] | BigInt64Array, name?: string);
|
|
339
|
+
}
|
|
334
340
|
export declare class DdbVectorDouble extends DdbObj<Float64Array> {
|
|
335
341
|
constructor(doubles: (number | null)[] | Float64Array, name?: string);
|
|
336
342
|
}
|
|
@@ -338,7 +344,7 @@ export declare class DdbVectorString extends DdbObj<string[]> {
|
|
|
338
344
|
constructor(strings: string[], name?: string);
|
|
339
345
|
}
|
|
340
346
|
export declare class DdbVectorAny extends DdbObj {
|
|
341
|
-
constructor(objs: (DdbObj | string | boolean)[], name?: string);
|
|
347
|
+
constructor(objs: (DdbObj | string | boolean | ArrayBuffer)[], name?: string);
|
|
342
348
|
}
|
|
343
349
|
export declare class DdbVectorSymbol extends DdbObj<DdbSymbolExtendedValue> {
|
|
344
350
|
constructor(strings: string[], name?: string);
|
|
@@ -457,7 +463,7 @@ type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
|
|
|
457
463
|
export interface DdbRpcOptions {
|
|
458
464
|
script?: string;
|
|
459
465
|
func?: string;
|
|
460
|
-
args?: (DdbObj | string | boolean)[];
|
|
466
|
+
args?: (DdbObj | string | boolean | ArrayBuffer)[];
|
|
461
467
|
vars?: string[];
|
|
462
468
|
urgent?: boolean;
|
|
463
469
|
listener?: DdbMessageListener;
|
|
@@ -621,7 +627,7 @@ export declare class DDB {
|
|
|
621
627
|
When it is false, the returned DdbObj only contains buffer and le without parsing,
|
|
622
628
|
so as to facilitate subsequent forwarding and serialization
|
|
623
629
|
*/
|
|
624
|
-
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
630
|
+
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean | ArrayBuffer)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
625
631
|
urgent?: boolean;
|
|
626
632
|
node?: string;
|
|
627
633
|
nodes?: string[];
|
package/browser.js
CHANGED
|
@@ -1689,6 +1689,15 @@ export class DdbNanoTimeStamp extends DdbObj {
|
|
|
1689
1689
|
});
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
+
export class DdbBlob extends DdbObj {
|
|
1693
|
+
constructor(value) {
|
|
1694
|
+
super({
|
|
1695
|
+
form: DdbForm.scalar,
|
|
1696
|
+
type: DdbType.blob,
|
|
1697
|
+
value: value instanceof Uint8Array ? value : new Uint8Array(value)
|
|
1698
|
+
});
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1692
1701
|
export class DdbPair extends DdbObj {
|
|
1693
1702
|
constructor(l, r = null) {
|
|
1694
1703
|
super({
|
|
@@ -1727,6 +1736,24 @@ export class DdbVectorInt extends DdbObj {
|
|
|
1727
1736
|
});
|
|
1728
1737
|
}
|
|
1729
1738
|
}
|
|
1739
|
+
export class DdbVectorLong extends DdbObj {
|
|
1740
|
+
constructor(longs, name) {
|
|
1741
|
+
super({
|
|
1742
|
+
form: DdbForm.vector,
|
|
1743
|
+
type: DdbType.long,
|
|
1744
|
+
rows: longs.length,
|
|
1745
|
+
cols: 1,
|
|
1746
|
+
value: longs instanceof BigInt64Array ?
|
|
1747
|
+
longs
|
|
1748
|
+
:
|
|
1749
|
+
BigInt64Array.from(longs, v => v === null ?
|
|
1750
|
+
nulls.int64
|
|
1751
|
+
:
|
|
1752
|
+
BigInt(v)),
|
|
1753
|
+
name,
|
|
1754
|
+
});
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1730
1757
|
export class DdbVectorDouble extends DdbObj {
|
|
1731
1758
|
constructor(doubles, name) {
|
|
1732
1759
|
super({
|