dolphindb 2.0.530 → 2.0.533
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.js +6 -2
- package/browser.js.map +1 -1
- package/index.js +6 -2
- package/index.js.map +1 -1
- package/language.d.ts +1 -1
- package/language.js +5 -0
- package/language.js.map +1 -1
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -415,7 +415,9 @@ export class DdbObj {
|
|
|
415
415
|
case DdbType.symbol:
|
|
416
416
|
case DdbType.code:
|
|
417
417
|
case DdbType.handle:
|
|
418
|
-
case DdbType.functiondef:
|
|
418
|
+
case DdbType.functiondef:
|
|
419
|
+
// mysql 插件 connect 方法会返回 resource 类型的对象
|
|
420
|
+
case DdbType.resource: {
|
|
419
421
|
const i_head = type === DdbType.functiondef ? 1 : 0;
|
|
420
422
|
let i_zero = buf.indexOf(0, i_head);
|
|
421
423
|
let i_end; // 整个字符串(包括 0)的末尾,excluding
|
|
@@ -793,6 +795,7 @@ export class DdbObj {
|
|
|
793
795
|
case DdbType.symbol:
|
|
794
796
|
case DdbType.code:
|
|
795
797
|
case DdbType.handle:
|
|
798
|
+
case DdbType.resource:
|
|
796
799
|
return [
|
|
797
800
|
DdbObj.enc.encode(value),
|
|
798
801
|
Uint8Array.of(0),
|
|
@@ -1305,6 +1308,7 @@ export function format(type, value, le, options) {
|
|
|
1305
1308
|
return inspect(value.name, options);
|
|
1306
1309
|
case DdbType.handle:
|
|
1307
1310
|
case DdbType.code:
|
|
1311
|
+
case DdbType.resource:
|
|
1308
1312
|
return inspect(value, options);
|
|
1309
1313
|
case DdbType.datehour:
|
|
1310
1314
|
return (value === null || value === nulls.int32) ?
|
|
@@ -1973,7 +1977,7 @@ export class DDB {
|
|
|
1973
1977
|
this.websocket = websocket;
|
|
1974
1978
|
await this.rpc('connect', {});
|
|
1975
1979
|
},
|
|
1976
|
-
on_message: event => {
|
|
1980
|
+
on_message: (event) => {
|
|
1977
1981
|
this.on_message(event);
|
|
1978
1982
|
}
|
|
1979
1983
|
});
|