dolphindb 3.1.38 → 3.1.41

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/common.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { type Dayjs } from 'dayjs';
2
+ import { type ValueOf } from 'xshell/prototype.common.js';
2
3
  export declare const nulls: {
3
4
  readonly int8: -128;
4
5
  readonly int16: -32768;
@@ -10,112 +11,118 @@ export declare const nulls: {
10
11
  readonly double: number;
11
12
  readonly bytes16: Uint8Array<ArrayBuffer>;
12
13
  };
13
- export declare enum DdbForm {
14
- scalar = 0,
15
- vector = 1,
16
- pair = 2,
17
- matrix = 3,
18
- set = 4,
19
- dict = 5,
20
- table = 6,
21
- chart = 7,
14
+ export declare const DdbForm: {
15
+ readonly scalar: 0;
16
+ readonly vector: 1;
17
+ readonly pair: 2;
18
+ readonly matrix: 3;
19
+ readonly set: 4;
20
+ readonly dict: 5;
21
+ readonly table: 6;
22
+ readonly chart: 7;
22
23
  /** 节点内部通信可能会使用,调用函数执行脚本一般不会返回这种类型 */
23
- chunk = 8,
24
+ readonly chunk: 8;
24
25
  /** sysobj */
25
- object = 9,
26
- tensor = 10,
27
- extobj = 11
28
- }
26
+ readonly object: 9;
27
+ readonly tensor: 10;
28
+ readonly extobj: 11;
29
+ };
30
+ export type DdbForm = ValueOf<typeof DdbForm>;
29
31
  /** DolphinDB DataType
30
32
  对应的 array vector 类型为 64 + 基本类型
31
33
  对应的 extended 类型为 128 + 基本类型 */
32
- export declare enum DdbType {
33
- void = 0,
34
- bool = 1,
35
- char = 2,
36
- short = 3,
37
- int = 4,
38
- long = 5,
39
- date = 6,
40
- month = 7,
41
- time = 8,
42
- minute = 9,
43
- second = 10,
44
- datetime = 11,
45
- timestamp = 12,
46
- nanotime = 13,
47
- nanotimestamp = 14,
48
- float = 15,
49
- double = 16,
50
- symbol = 17,
51
- string = 18,
52
- uuid = 19,
53
- functiondef = 20,
54
- handle = 21,
55
- code = 22,
56
- datasource = 23,
57
- resource = 24,
58
- any = 25,
59
- compressed = 26,
60
- dict = 27,
61
- datehour = 28,
62
- ipaddr = 30,
63
- int128 = 31,
64
- blob = 32,
65
- complex = 34,
66
- point = 35,
67
- duration = 36,
68
- decimal32 = 37,
69
- decimal64 = 38,
70
- decimal128 = 39,
71
- object = 40,
72
- iotany = 41,
73
- instrument = 42,
74
- market_data = 43,
75
- symbol_extended = 145
76
- }
34
+ export declare const DdbType: {
35
+ readonly void: 0;
36
+ readonly bool: 1;
37
+ readonly char: 2;
38
+ readonly short: 3;
39
+ readonly int: 4;
40
+ readonly long: 5;
41
+ readonly date: 6;
42
+ readonly month: 7;
43
+ readonly time: 8;
44
+ readonly minute: 9;
45
+ readonly second: 10;
46
+ readonly datetime: 11;
47
+ readonly timestamp: 12;
48
+ readonly nanotime: 13;
49
+ readonly nanotimestamp: 14;
50
+ readonly float: 15;
51
+ readonly double: 16;
52
+ readonly symbol: 17;
53
+ readonly string: 18;
54
+ readonly uuid: 19;
55
+ readonly functiondef: 20;
56
+ readonly handle: 21;
57
+ readonly code: 22;
58
+ readonly datasource: 23;
59
+ readonly resource: 24;
60
+ readonly any: 25;
61
+ readonly compressed: 26;
62
+ readonly dict: 27;
63
+ readonly datehour: 28;
64
+ readonly ipaddr: 30;
65
+ readonly int128: 31;
66
+ readonly blob: 32;
67
+ readonly complex: 34;
68
+ readonly point: 35;
69
+ readonly duration: 36;
70
+ readonly decimal32: 37;
71
+ readonly decimal64: 38;
72
+ readonly decimal128: 39;
73
+ readonly object: 40;
74
+ readonly iotany: 41;
75
+ readonly instrument: 42;
76
+ readonly market_data: 43;
77
+ readonly symbol_extended: 145;
78
+ };
79
+ export type DdbType = ValueOf<typeof DdbType>;
77
80
  export declare const number_nulls: Map<DdbType, number | bigint>;
78
- export declare enum DdbFunctionType {
79
- SystemFunc = 0,
80
- SystemProc = 1,
81
- OperatorFunc = 2,
82
- UserDefinedFunc = 3,
83
- PartialFunc = 4,
84
- DynamicFunc = 5,
85
- PiecewiseFunc = 6,
86
- JitFunc = 7,
87
- JitPartialFunc = 8
88
- }
89
- export declare enum DdbDurationUnit {
90
- ns = 0,
91
- us = 1,
92
- ms = 2,
93
- s = 3,
94
- m = 4,
95
- H = 5,
96
- d = 6,
97
- w = 7,
98
- M = 8,
99
- y = 9,
100
- B = 10
101
- }
102
- export declare enum DdbChartType {
103
- area = 0,
104
- bar = 1,
105
- column = 2,
106
- histogram = 3,
107
- line = 4,
108
- pie = 5,
109
- scatter = 6,
110
- trend = 7,
111
- kline = 8,
112
- surface = 9
113
- }
114
- export declare enum DdbVoidType {
115
- undefined = 0,
116
- null = 1,
117
- default = 2
118
- }
81
+ export declare const DdbFunctionType: {
82
+ readonly SystemFunc: 0;
83
+ readonly SystemProc: 1;
84
+ readonly OperatorFunc: 2;
85
+ readonly UserDefinedFunc: 3;
86
+ readonly PartialFunc: 4;
87
+ readonly DynamicFunc: 5;
88
+ readonly PiecewiseFunc: 6;
89
+ readonly JitFunc: 7;
90
+ readonly JitPartialFunc: 8;
91
+ };
92
+ export type DdbFunctionType = ValueOf<typeof DdbFunctionType>;
93
+ export declare const DdbDurationUnit: {
94
+ readonly ns: 0;
95
+ readonly us: 1;
96
+ readonly ms: 2;
97
+ readonly s: 3;
98
+ readonly m: 4;
99
+ readonly H: 5;
100
+ readonly d: 6;
101
+ readonly w: 7;
102
+ readonly M: 8;
103
+ readonly y: 9;
104
+ readonly B: 10;
105
+ };
106
+ export type DdbDurationUnit = ValueOf<typeof DdbDurationUnit>;
107
+ export declare const DdbChartType: {
108
+ readonly area: 0;
109
+ readonly bar: 1;
110
+ readonly column: 2;
111
+ readonly histogram: 3;
112
+ readonly line: 4;
113
+ readonly pie: 5;
114
+ readonly scatter: 6;
115
+ readonly trend: 7;
116
+ readonly kline: 8;
117
+ readonly surface: 9;
118
+ };
119
+ export type DdbChartType = ValueOf<typeof DdbChartType>;
120
+ export declare const DdbVoidType: {
121
+ readonly undefined: 0;
122
+ readonly null: 1;
123
+ readonly default: 2;
124
+ };
125
+ export type DdbVoidType = ValueOf<typeof DdbVoidType>;
119
126
  export interface DdbFunctionDefValue {
120
127
  type: DdbFunctionType;
121
128
  name: string;
@@ -162,9 +169,17 @@ export interface DdbExtObjValue {
162
169
  version: number;
163
170
  data: Uint8Array;
164
171
  }
165
- export declare const dictables: Set<DdbType>;
172
+ export declare const dictables: Set<16 | 4 | 5 | 15 | 18 | 25>;
166
173
  /** 工具,取得某个 DdbType 的字节数 */
167
- export declare const ddb_tensor_bytes: Record<DdbType.bool | DdbType.char | DdbType.short | DdbType.int | DdbType.long | DdbType.float | DdbType.double, number>;
174
+ export declare const ddb_tensor_bytes: {
175
+ readonly 1: 1;
176
+ readonly 2: 1;
177
+ readonly 3: 2;
178
+ readonly 4: 4;
179
+ readonly 5: 8;
180
+ readonly 15: 4;
181
+ readonly 16: 8;
182
+ };
168
183
  export type TensorElem = TensorData | boolean | number | bigint | null | string;
169
184
  export interface TensorData extends Array<TensorElem> {
170
185
  }
@@ -232,18 +247,18 @@ DdbFunctionDefValue | DdbDurationValue | DdbDecimal32Value | DdbDecimal64Value |
232
247
  export type IotVectorItemValue = [number | string | bigint | boolean][];
233
248
  /** 根据 DdbType 获取其名称,array vector type 自动在后面加上 [] */
234
249
  export declare function get_type_name(type: DdbType): string;
235
- export declare function is_decimal_type(type: DdbType): type is DdbType.decimal32 | DdbType.decimal64 | DdbType.decimal128;
250
+ export declare function is_decimal_type(type: DdbType): type is 37 | 38 | 39;
236
251
  export declare function is_decimal_null_value(type: DdbType, value: number | bigint): boolean;
237
252
  export declare function get_duration_unit(code: number): string;
238
253
  export type ConvertableDdbTimeValue = undefined | null | number | string | Date | Dayjs;
239
254
  export declare const ddb_time_converters: Record<DdbType, (date: Date) => number | bigint>;
240
255
  export declare function get_time_ddbobj(type: DdbType, js_value: ConvertableDdbTimeValue): {
241
- form: DdbForm;
256
+ form: 0;
242
257
  type: DdbType;
243
258
  value: number | bigint;
244
259
  };
245
260
  export declare function get_times_ddbobj(type: DdbType, js_values?: ConvertableDdbTimeValue[], name?: string): {
246
- form: DdbForm;
261
+ form: 1;
247
262
  type: DdbType;
248
263
  rows: number;
249
264
  cols: number;
@@ -325,30 +340,37 @@ export interface ConvertOptions {
325
340
  }
326
341
  export declare const winsize: 10000;
327
342
  export type DdbRpcType = 'script' | 'function' | 'variable' | 'connect';
328
- export type DdbLanguage = 'dolphindb' | 'python' | 'kdb';
343
+ export type DdbLanguage = 'dolphindb' | 'python' | 'q';
329
344
  export declare const function_definition_patterns: {
330
345
  dolphindb: RegExp;
331
346
  python: RegExp;
332
- kdb: RegExp;
347
+ q: RegExp;
333
348
  };
334
349
  export declare const funcdefs: {
335
350
  readonly invoke: {
336
351
  readonly dolphindb: string;
337
352
  readonly python: string;
338
- readonly kdb: string;
353
+ readonly q: string;
339
354
  };
340
355
  readonly jsrpc: {
341
356
  readonly dolphindb: string;
342
357
  readonly python: string;
343
- readonly kdb: string;
358
+ readonly q: string;
344
359
  };
345
360
  readonly pnode_run: {
346
361
  readonly dolphindb: string;
347
362
  readonly python: string;
348
- readonly kdb: string;
363
+ readonly q: string;
349
364
  };
350
365
  };
351
366
  export declare function get_number_formatter(integer: boolean, decimals?: number | null, grouping?: boolean): Intl.NumberFormat;
352
367
  export declare const urgent: {
353
368
  urgent: boolean;
354
369
  };
370
+ /** SQL Standrd 标准类型 */
371
+ export declare const SqlStandard: {
372
+ readonly DolphinDB: 0;
373
+ readonly Oracle: 1;
374
+ readonly MySQL: 2;
375
+ };
376
+ export type SqlStandard = ValueOf<typeof SqlStandard>;
package/common.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { default as dayjs } from 'dayjs';
2
2
  import DayjsCustomParseFormat from 'dayjs/plugin/customParseFormat.js';
3
3
  dayjs.extend(DayjsCustomParseFormat);
4
- import { empty } from 'xshell/prototype.common.js';
4
+ import { empty, set_reverse } from 'xshell/prototype.common.js';
5
5
  import { check } from 'xshell/utils.common.js';
6
6
  import ipaddrjs from 'ipaddr.js';
7
7
  const { fromByteArray: buf2ipaddr } = ipaddrjs;
@@ -18,72 +18,70 @@ export const nulls = {
18
18
  double: -Number.MAX_VALUE,
19
19
  bytes16: new Uint8Array(16)
20
20
  };
21
- export var DdbForm;
22
- (function (DdbForm) {
23
- DdbForm[DdbForm["scalar"] = 0] = "scalar";
24
- DdbForm[DdbForm["vector"] = 1] = "vector";
25
- DdbForm[DdbForm["pair"] = 2] = "pair";
26
- DdbForm[DdbForm["matrix"] = 3] = "matrix";
27
- DdbForm[DdbForm["set"] = 4] = "set";
28
- DdbForm[DdbForm["dict"] = 5] = "dict";
29
- DdbForm[DdbForm["table"] = 6] = "table";
30
- DdbForm[DdbForm["chart"] = 7] = "chart";
21
+ export const DdbForm = set_reverse({
22
+ scalar: 0,
23
+ vector: 1,
24
+ pair: 2,
25
+ matrix: 3,
26
+ set: 4,
27
+ dict: 5,
28
+ table: 6,
29
+ chart: 7,
31
30
  /** 节点内部通信可能会使用,调用函数执行脚本一般不会返回这种类型 */
32
- DdbForm[DdbForm["chunk"] = 8] = "chunk";
31
+ chunk: 8,
33
32
  /** sysobj */
34
- DdbForm[DdbForm["object"] = 9] = "object";
35
- DdbForm[DdbForm["tensor"] = 10] = "tensor";
36
- DdbForm[DdbForm["extobj"] = 11] = "extobj";
37
- })(DdbForm || (DdbForm = {}));
33
+ object: 9,
34
+ tensor: 10,
35
+ extobj: 11
36
+ });
38
37
  /** DolphinDB DataType
39
38
  对应的 array vector 类型为 64 + 基本类型
40
39
  对应的 extended 类型为 128 + 基本类型 */
41
- export var DdbType;
42
- (function (DdbType) {
43
- DdbType[DdbType["void"] = 0] = "void";
44
- DdbType[DdbType["bool"] = 1] = "bool";
45
- DdbType[DdbType["char"] = 2] = "char";
46
- DdbType[DdbType["short"] = 3] = "short";
47
- DdbType[DdbType["int"] = 4] = "int";
48
- DdbType[DdbType["long"] = 5] = "long";
49
- DdbType[DdbType["date"] = 6] = "date";
50
- DdbType[DdbType["month"] = 7] = "month";
51
- DdbType[DdbType["time"] = 8] = "time";
52
- DdbType[DdbType["minute"] = 9] = "minute";
53
- DdbType[DdbType["second"] = 10] = "second";
54
- DdbType[DdbType["datetime"] = 11] = "datetime";
55
- DdbType[DdbType["timestamp"] = 12] = "timestamp";
56
- DdbType[DdbType["nanotime"] = 13] = "nanotime";
57
- DdbType[DdbType["nanotimestamp"] = 14] = "nanotimestamp";
58
- DdbType[DdbType["float"] = 15] = "float";
59
- DdbType[DdbType["double"] = 16] = "double";
60
- DdbType[DdbType["symbol"] = 17] = "symbol";
61
- DdbType[DdbType["string"] = 18] = "string";
62
- DdbType[DdbType["uuid"] = 19] = "uuid";
63
- DdbType[DdbType["functiondef"] = 20] = "functiondef";
64
- DdbType[DdbType["handle"] = 21] = "handle";
65
- DdbType[DdbType["code"] = 22] = "code";
66
- DdbType[DdbType["datasource"] = 23] = "datasource";
67
- DdbType[DdbType["resource"] = 24] = "resource";
68
- DdbType[DdbType["any"] = 25] = "any";
69
- DdbType[DdbType["compressed"] = 26] = "compressed";
70
- DdbType[DdbType["dict"] = 27] = "dict";
71
- DdbType[DdbType["datehour"] = 28] = "datehour";
72
- DdbType[DdbType["ipaddr"] = 30] = "ipaddr";
73
- DdbType[DdbType["int128"] = 31] = "int128";
74
- DdbType[DdbType["blob"] = 32] = "blob";
75
- DdbType[DdbType["complex"] = 34] = "complex";
76
- DdbType[DdbType["point"] = 35] = "point";
77
- DdbType[DdbType["duration"] = 36] = "duration";
78
- DdbType[DdbType["decimal32"] = 37] = "decimal32";
79
- DdbType[DdbType["decimal64"] = 38] = "decimal64";
80
- DdbType[DdbType["decimal128"] = 39] = "decimal128";
81
- DdbType[DdbType["object"] = 40] = "object";
82
- DdbType[DdbType["iotany"] = 41] = "iotany";
83
- DdbType[DdbType["instrument"] = 42] = "instrument";
84
- DdbType[DdbType["market_data"] = 43] = "market_data";
85
- DdbType[DdbType["symbol_extended"] = 145] = "symbol_extended";
86
- })(DdbType || (DdbType = {}));
40
+ export const DdbType = set_reverse({
41
+ void: 0,
42
+ bool: 1,
43
+ char: 2,
44
+ short: 3,
45
+ int: 4,
46
+ long: 5,
47
+ date: 6,
48
+ month: 7,
49
+ time: 8,
50
+ minute: 9,
51
+ second: 10,
52
+ datetime: 11,
53
+ timestamp: 12,
54
+ nanotime: 13,
55
+ nanotimestamp: 14,
56
+ float: 15,
57
+ double: 16,
58
+ symbol: 17,
59
+ string: 18,
60
+ uuid: 19,
61
+ functiondef: 20,
62
+ handle: 21,
63
+ code: 22,
64
+ datasource: 23,
65
+ resource: 24,
66
+ any: 25,
67
+ compressed: 26,
68
+ dict: 27,
69
+ datehour: 28,
70
+ ipaddr: 30,
71
+ int128: 31,
72
+ blob: 32,
73
+ complex: 34,
74
+ point: 35,
75
+ duration: 36,
76
+ decimal32: 37,
77
+ decimal64: 38,
78
+ decimal128: 39,
79
+ object: 40,
80
+ iotany: 41,
81
+ instrument: 42,
82
+ market_data: 43,
83
+ symbol_extended: 145, // 128 + DdbType.symbol
84
+ });
87
85
  export const number_nulls = new Map([
88
86
  [DdbType.short, nulls.int16],
89
87
  [DdbType.int, nulls.int32],
@@ -91,54 +89,50 @@ export const number_nulls = new Map([
91
89
  [DdbType.float, nulls.float32],
92
90
  [DdbType.double, nulls.double],
93
91
  ]);
94
- export var DdbFunctionType;
95
- (function (DdbFunctionType) {
96
- DdbFunctionType[DdbFunctionType["SystemFunc"] = 0] = "SystemFunc";
97
- DdbFunctionType[DdbFunctionType["SystemProc"] = 1] = "SystemProc";
98
- DdbFunctionType[DdbFunctionType["OperatorFunc"] = 2] = "OperatorFunc";
99
- DdbFunctionType[DdbFunctionType["UserDefinedFunc"] = 3] = "UserDefinedFunc";
100
- DdbFunctionType[DdbFunctionType["PartialFunc"] = 4] = "PartialFunc";
101
- DdbFunctionType[DdbFunctionType["DynamicFunc"] = 5] = "DynamicFunc";
102
- DdbFunctionType[DdbFunctionType["PiecewiseFunc"] = 6] = "PiecewiseFunc";
103
- DdbFunctionType[DdbFunctionType["JitFunc"] = 7] = "JitFunc";
104
- DdbFunctionType[DdbFunctionType["JitPartialFunc"] = 8] = "JitPartialFunc";
105
- })(DdbFunctionType || (DdbFunctionType = {}));
106
- export var DdbDurationUnit;
107
- (function (DdbDurationUnit) {
108
- DdbDurationUnit[DdbDurationUnit["ns"] = 0] = "ns";
109
- DdbDurationUnit[DdbDurationUnit["us"] = 1] = "us";
110
- DdbDurationUnit[DdbDurationUnit["ms"] = 2] = "ms";
111
- DdbDurationUnit[DdbDurationUnit["s"] = 3] = "s";
112
- DdbDurationUnit[DdbDurationUnit["m"] = 4] = "m";
113
- DdbDurationUnit[DdbDurationUnit["H"] = 5] = "H";
114
- DdbDurationUnit[DdbDurationUnit["d"] = 6] = "d";
115
- DdbDurationUnit[DdbDurationUnit["w"] = 7] = "w";
116
- DdbDurationUnit[DdbDurationUnit["M"] = 8] = "M";
117
- DdbDurationUnit[DdbDurationUnit["y"] = 9] = "y";
118
- DdbDurationUnit[DdbDurationUnit["B"] = 10] = "B";
119
- })(DdbDurationUnit || (DdbDurationUnit = {}));
120
- export var DdbChartType;
121
- (function (DdbChartType) {
122
- DdbChartType[DdbChartType["area"] = 0] = "area";
123
- DdbChartType[DdbChartType["bar"] = 1] = "bar";
124
- DdbChartType[DdbChartType["column"] = 2] = "column";
125
- DdbChartType[DdbChartType["histogram"] = 3] = "histogram";
126
- DdbChartType[DdbChartType["line"] = 4] = "line";
127
- DdbChartType[DdbChartType["pie"] = 5] = "pie";
128
- DdbChartType[DdbChartType["scatter"] = 6] = "scatter";
129
- DdbChartType[DdbChartType["trend"] = 7] = "trend";
130
- DdbChartType[DdbChartType["kline"] = 8] = "kline";
131
- DdbChartType[DdbChartType["surface"] = 9] = "surface";
132
- })(DdbChartType || (DdbChartType = {}));
92
+ export const DdbFunctionType = set_reverse({
93
+ SystemFunc: 0,
94
+ SystemProc: 1,
95
+ OperatorFunc: 2,
96
+ UserDefinedFunc: 3,
97
+ PartialFunc: 4,
98
+ DynamicFunc: 5,
99
+ PiecewiseFunc: 6,
100
+ JitFunc: 7,
101
+ JitPartialFunc: 8,
102
+ });
103
+ export const DdbDurationUnit = set_reverse({
104
+ ns: 0,
105
+ us: 1,
106
+ ms: 2,
107
+ s: 3,
108
+ m: 4,
109
+ H: 5,
110
+ d: 6,
111
+ w: 7,
112
+ M: 8,
113
+ y: 9,
114
+ B: 10
115
+ });
116
+ export const DdbChartType = set_reverse({
117
+ area: 0,
118
+ bar: 1,
119
+ column: 2,
120
+ histogram: 3,
121
+ line: 4,
122
+ pie: 5,
123
+ scatter: 6,
124
+ trend: 7,
125
+ kline: 8,
126
+ surface: 9
127
+ });
133
128
  // server 实现中区分了 0: NULL (nothing), 1: NULL (null), 2: DFLT (default)
134
129
  // Void::serialize()
135
130
  // (isNothing() ? 0 : 1) + (isDefault_ ? 2 : 0);
136
- export var DdbVoidType;
137
- (function (DdbVoidType) {
138
- DdbVoidType[DdbVoidType["undefined"] = 0] = "undefined";
139
- DdbVoidType[DdbVoidType["null"] = 1] = "null";
140
- DdbVoidType[DdbVoidType["default"] = 2] = "default";
141
- })(DdbVoidType || (DdbVoidType = {}));
131
+ export const DdbVoidType = set_reverse({
132
+ undefined: 0,
133
+ null: 1,
134
+ default: 2
135
+ });
142
136
  export const dictables = new Set([DdbType.any, DdbType.string, DdbType.double, DdbType.float, DdbType.int, DdbType.long]);
143
137
  /** 工具,取得某个 DdbType 的字节数 */
144
138
  export const ddb_tensor_bytes = {
@@ -517,7 +511,7 @@ const dolphindb_function_definition_pattern = /\bdef (\w+) \(/;
517
511
  export const function_definition_patterns = {
518
512
  dolphindb: dolphindb_function_definition_pattern,
519
513
  python: dolphindb_function_definition_pattern,
520
- kdb: /(\w+): \{\[/
514
+ q: /(\w+): \{\[/
521
515
  };
522
516
  export const funcdefs = {
523
517
  invoke: {
@@ -538,7 +532,7 @@ export const funcdefs = {
538
532
  ' if type(args) != ANY:\n' +
539
533
  ' args = cast(args, ANY)\n' +
540
534
  ' return unifiedCall(func_, args)\n',
541
- kdb: 'invoke: {[fn; args_json]\n' +
535
+ q: 'invoke: {[fn; args_json]\n' +
542
536
  ' args_: fromStdJson[args_json];\n' +
543
537
  ' func_: fn;\n' +
544
538
  ' if[typestr[fn] = `STRING;\n' +
@@ -560,7 +554,7 @@ export const funcdefs = {
560
554
  ' if func_name == "invoke":\n' +
561
555
  ' args_[0] = funcByName(args[0])\n' +
562
556
  ' return rpc(node, unifiedCall, funcByName(func_name), args_)\n',
563
- kdb: 'jsrpc: {[node; func_name; args]\n' +
557
+ q: 'jsrpc: {[node; func_name; args]\n' +
564
558
  ' args_: args;\n' +
565
559
  ' if[(`$func_name)=`invoke; args_[0]:funcByName[args[0]]];\n' +
566
560
  ' rpc[node; unifiedCall; funcByName[func_name]; args_]\n' +
@@ -600,7 +594,7 @@ export const funcdefs = {
600
594
  ' nodes,\n' +
601
595
  ' add_node_alias\n' +
602
596
  ' )\n',
603
- kdb: 'pnode_run: {[nodes; func_name; args]\n' +
597
+ q: 'pnode_run: {[nodes; func_name; args]\n' +
604
598
  ' nargs_: count args;\n' +
605
599
  ' func_: get toCharArray func_name;\n' +
606
600
  ' if [nargs_=0; : pnodeRun[func_; nodes; 1b]];\n' +
@@ -631,4 +625,10 @@ export function get_number_formatter(integer, decimals = null, grouping = true)
631
625
  });
632
626
  }
633
627
  export const urgent = { urgent: true };
628
+ /** SQL Standrd 标准类型 */
629
+ export const SqlStandard = set_reverse({
630
+ DolphinDB: 0,
631
+ Oracle: 1,
632
+ MySQL: 2
633
+ });
634
634
  //# sourceMappingURL=common.js.map