dolphindb 2.0.948 → 2.0.949
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 +4 -2
- package/browser.js.map +1 -1
- package/index.js +4 -2
- package/index.js.map +1 -1
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -119,7 +119,7 @@ export const nulls = {
|
|
|
119
119
|
bytes16: Uint8Array.from(new Array(16).fill(0))
|
|
120
120
|
};
|
|
121
121
|
/** 可以表示所有 DolphinDB 数据库中的数据类型 Can represent data types in all DolphinDB databases */
|
|
122
|
-
|
|
122
|
+
class DdbObj {
|
|
123
123
|
static dec = new TextDecoder('utf-8');
|
|
124
124
|
static enc = new TextEncoder();
|
|
125
125
|
/** 维护已解析的 symbol base,比如流数据中后续的 symbol 向量可能只发送一个 base.id, base.size == 0, 依赖之前发送的 symbol base ?
|
|
@@ -1275,6 +1275,7 @@ export class DdbObj {
|
|
|
1275
1275
|
return obj;
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
+
export { DdbObj };
|
|
1278
1279
|
/** 整数一定用这个 number formatter, InspectOptions.decimals 不传也用这个 */
|
|
1279
1280
|
let default_formatter = Intl.NumberFormat('en-US', { maximumFractionDigits: 20 });
|
|
1280
1281
|
let _decimals = 20;
|
|
@@ -2158,7 +2159,7 @@ export class DdbDatabaseError extends Error {
|
|
|
2158
2159
|
this.options = options;
|
|
2159
2160
|
}
|
|
2160
2161
|
}
|
|
2161
|
-
|
|
2162
|
+
class DDB {
|
|
2162
2163
|
/** 当前的 session id (http 或 tcp) */
|
|
2163
2164
|
sid = '0';
|
|
2164
2165
|
/** utf-8 text decoder */
|
|
@@ -2704,6 +2705,7 @@ export class DDB {
|
|
|
2704
2705
|
return this.streaming;
|
|
2705
2706
|
}
|
|
2706
2707
|
}
|
|
2708
|
+
export { DDB };
|
|
2707
2709
|
// const ddb_gateway = {
|
|
2708
2710
|
// server: null as SocketServer,
|
|
2709
2711
|
// clients: new Set<Socket>(),
|