dolphindb 3.1.48 → 3.1.50
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 +3 -3
- package/browser.js +3 -3
- package/browser.js.map +1 -1
- package/common.d.ts +3 -3
- package/common.js +1 -1
- package/common.js.map +1 -1
- package/docs.js +1 -1
- package/index.d.ts +5 -5
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/language.d.ts +1 -1
- package/language.js +7 -0
- package/language.js.map +1 -1
- package/package.json +6 -6
- package/theme.dark.d.ts +7 -7
- package/theme.light.d.ts +7 -7
package/browser.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Dayjs } from 'dayjs';
|
|
2
2
|
import { Lock } from 'xshell/utils.browser.js';
|
|
3
3
|
import { type WebSocketConnectionError } from 'xshell/net.browser.js';
|
|
4
|
-
import { DdbChartType, DdbForm, DdbFunctionType, DdbType, DdbVoidType, SqlStandard, type ConvertOptions, type
|
|
4
|
+
import { DdbChartType, DdbForm, DdbFunctionType, DdbType, DdbVoidType, SqlStandard, type ConvertOptions, type DdbDecimal128Value, type DdbDecimal32Value, type DdbDecimal32VectorValue, type DdbDecimal64VectorValue, type DdbDurationValue, type DdbDurationVectorValue, type DdbFunctionDefValue, type DdbRpcType, type DdbScalarValue, type DdbSymbolExtendedValue, type DdbTableData, type DdbTensorValue, type IotVectorItemValue, type TensorData, type DdbExtObjValue, type ConvertableDdbTimeValue, type DdbLanguage } from './common.ts';
|
|
5
5
|
export * from './common.ts';
|
|
6
6
|
export interface DdbDecimal128VectorValue {
|
|
7
7
|
scale: number;
|
|
@@ -187,7 +187,7 @@ export interface InspectOptions {
|
|
|
187
187
|
export declare function format(type: DdbType, value: DdbValue, le: boolean, options?: InspectOptions): string;
|
|
188
188
|
/** 格式化向量、集合中的第 index 项为字符串,空值返回 'null' 字符串 formatted vector, the index-th item in the collection is a string, a null value returns a 'null' string */
|
|
189
189
|
export declare function formati(obj: DdbVectorObj, index: number, options?: InspectOptions): string;
|
|
190
|
-
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean |
|
|
190
|
+
export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, char, timestamp }?: ConvertOptions): string | number | bigint | boolean | string[] | number[] | DdbObj<DdbValue>[] | Uint8Array<ArrayBufferLike>[] | BigInt128Array | BigInt64Array<ArrayBufferLike> | DdbChartValue | DdbDecimal128Value | DdbDecimal128VectorValue | DdbDecimal32Value | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDurationValue | DdbDurationVectorValue | DdbExtObjValue | DdbFunctionDefValue | DdbMatrixValue | DdbSymbolExtendedValue | DdbTensorValue | Float32Array<ArrayBufferLike> | Float64Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Int32Array<ArrayBufferLike> | Int8Array<ArrayBufferLike> | IotVectorItemValue | Uint8Array<ArrayBufferLike> | DdbArrayVectorValue;
|
|
191
191
|
/** 转换一个向量到 js 原生数组 */
|
|
192
192
|
export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[] | Uint8Array;
|
|
193
193
|
/** 构造 void 类型,默认为 `DdbVoidType.undefined` */
|
|
@@ -653,8 +653,8 @@ export declare class BigInt128Array {
|
|
|
653
653
|
value: bigint;
|
|
654
654
|
done: boolean;
|
|
655
655
|
} | {
|
|
656
|
-
done: boolean;
|
|
657
656
|
value?: undefined;
|
|
657
|
+
done: boolean;
|
|
658
658
|
};
|
|
659
659
|
};
|
|
660
660
|
toString(): string;
|
package/browser.js
CHANGED
|
@@ -2,9 +2,9 @@ import { empty, to_lower_camel_case } from 'xshell/prototype.browser.js';
|
|
|
2
2
|
import { blue, cyan, green, gray, magenta } from 'xshell/chalk.browser.js';
|
|
3
3
|
import { concat, assert, Lock, genid, seq, zip_object, decode, check, map_keys } from 'xshell/utils.browser.js';
|
|
4
4
|
import { connect_websocket } from 'xshell/net.browser.js';
|
|
5
|
-
import { t } from
|
|
6
|
-
import { ddb_tensor_bytes, DdbChartType, DdbDurationUnit, DdbForm, generate_array_type, DdbFunctionType, DdbType, DdbVoidType, dictables, function_definition_patterns, get_big_int_128, get_time_ddbobj, get_duration_unit, get_type_name, int1282str, ipaddr2str, is_decimal_null_value, is_decimal_type, time_formatters, number_nulls, nulls, set_big_int_128, SqlStandard, uuid2str, get_times_ddbobj, funcdefs, get_number_formatter, urgent } from
|
|
7
|
-
export * from
|
|
5
|
+
import { t } from './i18n/index.js';
|
|
6
|
+
import { ddb_tensor_bytes, DdbChartType, DdbDurationUnit, DdbForm, generate_array_type, DdbFunctionType, DdbType, DdbVoidType, dictables, function_definition_patterns, get_big_int_128, get_time_ddbobj, get_duration_unit, get_type_name, int1282str, ipaddr2str, is_decimal_null_value, is_decimal_type, time_formatters, number_nulls, nulls, set_big_int_128, SqlStandard, uuid2str, get_times_ddbobj, funcdefs, get_number_formatter, urgent } from './common.js';
|
|
7
|
+
export * from './common.js';
|
|
8
8
|
/** 可以表示所有 DolphinDB 数据库中的数据类型 Can represent data types in all DolphinDB databases */
|
|
9
9
|
export class DdbObj {
|
|
10
10
|
static dec = new TextDecoder('utf-8');
|