dolphindb 3.0.101 → 3.0.103

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 CHANGED
@@ -411,7 +411,7 @@ export interface ConvertOptions {
411
411
  /** timestamp 类型转换为字符串表示时显示到秒还是毫秒 */
412
412
  timestamp?: 's' | 'ms';
413
413
  }
414
- export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, timestamp }?: ConvertOptions): string | number | bigint | boolean | Uint8Array | number[] | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array | BigInt64Array | BigInt128Array | string[] | Uint8Array[] | DdbObj<DdbValue>[] | DdbSymbolExtendedValue | DdbArrayVectorValue | DdbDecimal32VectorValue | DdbDecimal64VectorValue | DdbDecimal128VectorValue | DdbDurationVectorValue | DdbMatrixValue | DdbChartValue | DdbTensorValue;
414
+ export declare function convert(type: DdbType, value: DdbValue, le: boolean, { blob, timestamp }?: ConvertOptions): string | number | bigint | boolean | Uint8Array | DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value | DdbDecimal32VectorValue | Int32Array | DdbDecimal64VectorValue | BigInt64Array | DdbDecimal128VectorValue | BigInt128Array | DdbSymbolExtendedValue | string[] | Int8Array | Int16Array | Float32Array | Float64Array | DdbArrayVectorValue | DdbMatrixValue | Uint8Array[] | DdbObj<DdbValue>[] | DdbDurationVectorValue | number[] | DdbTensorValue | DdbChartValue;
415
415
  /** 转换一个向量到 js 原生数组 */
416
416
  export declare function converts(type: DdbType, value: DdbVectorValue, rows: number, le: boolean, options?: ConvertOptions): any[];
417
417
  export declare class DdbVoid extends DdbObj<undefined> {
package/docs.d.ts CHANGED
@@ -17,27 +17,27 @@ export interface Doc {
17
17
  markdown: string;
18
18
  }
19
19
  export type Docs = Record<string, Doc>;
20
- export declare class DocsAnalyser {
20
+ export declare class DocsProvider {
21
21
  /** 文档原始信息 */
22
22
  docs?: Docs;
23
23
  /** 函数名列表 */
24
- funcs: string[];
24
+ functions: string[];
25
25
  /** 转化成小写字母的函数名列表 */
26
- lower_funcs: string[];
26
+ functions_lower: string[];
27
+ constants_lower: string[];
28
+ /** - docs: docs.zh.json 等文件对应的文档对象 */
27
29
  constructor(docs: Docs);
28
30
  get_function_markdown(name: string): string;
29
31
  get_signatures(name: string): FunctionSignature[];
30
- /** 查询补全项(包括关键字、常量和函数)
31
- @param query
32
- @returns */
33
- search_completion_items(query: string): {
32
+ /** 根据用户输入提供补全列表,返回匹配的关键字、常量和函数 */
33
+ complete(query: string): {
34
34
  keywords: string[];
35
- constants: ("true" | "false" | "DFLT" | "NULL" | "pi" | "e" | "SCALAR" | "VECTOR" | "PAIR" | "MATRIX" | "SET" | "DICT" | "TABLE" | "VOID" | "BOOL" | "CHAR" | "SHORT" | "INT" | "INDEX" | "LONG" | "DATE" | "MONTH" | "TIME" | "MINUTE" | "SECOND" | "DATETIME" | "TIMESTAMP" | "NANOTIME" | "NANOTIMESTAMP" | "FLOAT" | "DOUBLE" | "SYMBOL" | "STRING" | "UUID" | "FUNCTIONDEF" | "HANDLE" | "CODE" | "DATASOURCE" | "RESOURCE" | "ANY" | "DICTIONARY" | "DATEHOUR" | "IPADDR" | "INT128" | "BLOB" | "COMPLEX" | "POINT" | "DURATION" | "OBJECT" | "DECIMAL32" | "DECIMAL64" | "DECIMAL128" | "SEQ" | "RANGE" | "HASH" | "VALUE" | "LIST" | "COMPO" | "VAR" | "SHARED" | "DEF" | "GLOBAL" | "TABLE_READ" | "TABLE_WRITE" | "TABLE_INSERT" | "TABLE_UPDATE" | "TABLE_DELETE" | "DBOBJ_CREATE" | "DBOBJ_DELETE" | "DB_DELETE" | "DB_INSERT" | "DB_MANAGE" | "DB_OWNER" | "DB_READ" | "DB_UPDATE" | "DB_WRITE" | "SCRIPT_EXEC" | "TASK_GROUP_MEM_LIMIT" | "TEST_EXEC" | "VIEW_EXEC" | "VIEW_OWNER" | "QUERY_RESULT_MEM_LIMIT" | "HINT_HASH" | "HINT_SNAPSHOT" | "HINT_KEEPORDER" | "HINT_SEQ" | "HINT_EXPLAIN" | "HINT_VECTORIZED" | "HEAD" | "CURRENT" | "TAIL" | "LINE" | "PIE" | "COLUMN" | "BAR" | "AREA" | "SCATTER" | "HISTOGRAM" | "KLINE" | "DEBUG" | "INFO" | "WARNING" | "ERROR" | "FIRST" | "LAST" | "ALL" | "NONE" | "HASH_PTN" | "True" | "False" | "None")[];
35
+ constants: string[];
36
36
  functions: string[];
37
37
  };
38
+ get_signature_help(text: string): {
39
+ signature: FunctionSignature;
40
+ active_parameter: number;
41
+ documentation_md: string;
42
+ };
38
43
  }
39
- export declare function parse_signature_help_from_text(text: string, docsAnalyser: DocsAnalyser): {
40
- signature: FunctionSignature;
41
- active_parameter: number;
42
- documentation_md: string;
43
- };