dolphindb 3.1.32 → 3.1.33
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 +6 -0
- package/browser.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +6 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ export interface InspectOptions extends UtilInspectOptions {
|
|
|
174
174
|
export declare function format(type: DdbType, value: DdbValue, le: boolean, options?: InspectOptions): string;
|
|
175
175
|
/** 格式化向量、集合中的第 index 项为字符串,空值返回 'null' 字符串 formatted vector, the index-th item in the collection is a string, a null value returns a 'null' string */
|
|
176
176
|
export declare function formati(obj: DdbVectorObj, index: number, options?: InspectOptions): string;
|
|
177
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | number[] | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value |
|
|
177
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | number[] | Uint8Array<ArrayBufferLike> | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | string[] | IotVectorItemValue | DdbSymbolExtendedValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDurationVectorValue | DdbTensorValue | DdbExtObjValue | Int8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | BigInt64Array<ArrayBufferLike> | BigInt128Array | Uint8Array<ArrayBufferLike>[] | DdbObj<DdbValue>[] | DdbArrayVectorValue | DdbDecimal128VectorValue | DdbMatrixValue | DdbChartValue;
|
|
178
178
|
/** 转换一个向量到 js 原生数组 */
|
|
179
179
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
180
180
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
|
@@ -607,6 +607,9 @@ export declare class DDB {
|
|
|
607
607
|
define(definition: string, { urgent }?: {
|
|
608
608
|
urgent?: boolean;
|
|
609
609
|
}): Promise<string>;
|
|
610
|
+
/** 在 undef all, 或运行 test 函数之后,由于函数定义在 server 侧被清空,需要同步清空 api 侧缓存,
|
|
611
|
+
使得下次调用 invoke, define 能够重新定义函数 */
|
|
612
|
+
reset_definitions(): void;
|
|
610
613
|
}
|
|
611
614
|
export interface DdbMessageListener {
|
|
612
615
|
(message: DdbMessage, _this: DDB): any;
|
package/index.js
CHANGED
|
@@ -3107,6 +3107,12 @@ export class DDB {
|
|
|
3107
3107
|
this.pdefinitions.delete(func_name);
|
|
3108
3108
|
return func_name;
|
|
3109
3109
|
}
|
|
3110
|
+
/** 在 undef all, 或运行 test 函数之后,由于函数定义在 server 侧被清空,需要同步清空 api 侧缓存,
|
|
3111
|
+
使得下次调用 invoke, define 能够重新定义函数 */
|
|
3112
|
+
reset_definitions() {
|
|
3113
|
+
this.definitions.clear();
|
|
3114
|
+
this.pdefinitions.clear();
|
|
3115
|
+
}
|
|
3110
3116
|
}
|
|
3111
3117
|
export class BigInt128Array {
|
|
3112
3118
|
static of(...items) {
|