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/index.d.ts
CHANGED
|
@@ -315,6 +315,9 @@ export declare class DdbTimeStamp extends DdbObj<bigint> {
|
|
|
315
315
|
export declare class DdbNanoTimeStamp extends DdbObj<bigint> {
|
|
316
316
|
constructor(value: bigint | null);
|
|
317
317
|
}
|
|
318
|
+
export declare class DdbBlob extends DdbObj<Uint8Array> {
|
|
319
|
+
constructor(value: Uint8Array | ArrayBuffer);
|
|
320
|
+
}
|
|
318
321
|
export declare class DdbPair extends DdbObj<Int32Array> {
|
|
319
322
|
constructor(l: number | null, r?: number | null);
|
|
320
323
|
}
|
|
@@ -324,6 +327,9 @@ export declare class DdbFunction extends DdbObj<DdbFunctionDefValue> {
|
|
|
324
327
|
export declare class DdbVectorInt extends DdbObj<Int32Array> {
|
|
325
328
|
constructor(ints: (number | null)[] | Int32Array, name?: string);
|
|
326
329
|
}
|
|
330
|
+
export declare class DdbVectorLong extends DdbObj<BigInt64Array> {
|
|
331
|
+
constructor(longs: (number | null)[] | BigInt64Array, name?: string);
|
|
332
|
+
}
|
|
327
333
|
export declare class DdbVectorDouble extends DdbObj<Float64Array> {
|
|
328
334
|
constructor(doubles: (number | null)[] | Float64Array, name?: string);
|
|
329
335
|
}
|
|
@@ -331,7 +337,7 @@ export declare class DdbVectorString extends DdbObj<string[]> {
|
|
|
331
337
|
constructor(strings: string[], name?: string);
|
|
332
338
|
}
|
|
333
339
|
export declare class DdbVectorAny extends DdbObj {
|
|
334
|
-
constructor(objs: (DdbObj | string | boolean)[], name?: string);
|
|
340
|
+
constructor(objs: (DdbObj | string | boolean | ArrayBuffer)[], name?: string);
|
|
335
341
|
}
|
|
336
342
|
export declare class DdbVectorSymbol extends DdbObj<DdbSymbolExtendedValue> {
|
|
337
343
|
constructor(strings: string[], name?: string);
|
|
@@ -448,7 +454,7 @@ type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
|
|
|
448
454
|
export interface DdbRpcOptions {
|
|
449
455
|
script?: string;
|
|
450
456
|
func?: string;
|
|
451
|
-
args?: (DdbObj | string | boolean)[];
|
|
457
|
+
args?: (DdbObj | string | boolean | ArrayBuffer)[];
|
|
452
458
|
vars?: string[];
|
|
453
459
|
urgent?: boolean;
|
|
454
460
|
listener?: DdbMessageListener;
|
|
@@ -611,7 +617,7 @@ export declare class DDB {
|
|
|
611
617
|
When it is false, the returned DdbObj only contains buffer and le without parsing,
|
|
612
618
|
so as to facilitate subsequent forwarding and serialization
|
|
613
619
|
*/
|
|
614
|
-
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
620
|
+
call<TResult extends DdbObj>(func: string, args?: (DdbObj | string | boolean | ArrayBuffer)[], { urgent, node, nodes, func_type, add_node_alias, listener, parse_object, }?: {
|
|
615
621
|
urgent?: boolean;
|
|
616
622
|
node?: string;
|
|
617
623
|
nodes?: string[];
|
package/index.js
CHANGED
|
@@ -1675,6 +1675,15 @@ export class DdbNanoTimeStamp extends DdbObj {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
|
+
export class DdbBlob extends DdbObj {
|
|
1679
|
+
constructor(value) {
|
|
1680
|
+
super({
|
|
1681
|
+
form: DdbForm.scalar,
|
|
1682
|
+
type: DdbType.blob,
|
|
1683
|
+
value: value instanceof Uint8Array ? value : new Uint8Array(value)
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1678
1687
|
export class DdbPair extends DdbObj {
|
|
1679
1688
|
constructor(l, r = null) {
|
|
1680
1689
|
super({
|
|
@@ -1713,6 +1722,24 @@ export class DdbVectorInt extends DdbObj {
|
|
|
1713
1722
|
});
|
|
1714
1723
|
}
|
|
1715
1724
|
}
|
|
1725
|
+
export class DdbVectorLong extends DdbObj {
|
|
1726
|
+
constructor(longs, name) {
|
|
1727
|
+
super({
|
|
1728
|
+
form: DdbForm.vector,
|
|
1729
|
+
type: DdbType.long,
|
|
1730
|
+
rows: longs.length,
|
|
1731
|
+
cols: 1,
|
|
1732
|
+
value: longs instanceof BigInt64Array ?
|
|
1733
|
+
longs
|
|
1734
|
+
:
|
|
1735
|
+
BigInt64Array.from(longs, v => v === null ?
|
|
1736
|
+
nulls.int64
|
|
1737
|
+
:
|
|
1738
|
+
BigInt(v)),
|
|
1739
|
+
name,
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1716
1743
|
export class DdbVectorDouble extends DdbObj {
|
|
1717
1744
|
constructor(doubles, name) {
|
|
1718
1745
|
super({
|