dolphindb 2.0.952 → 2.0.953
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 +11 -11
- package/browser.js +2 -3
- package/browser.js.map +1 -1
- package/index.d.ts +11 -11
- package/index.js +2 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -476,6 +476,14 @@ export declare class DdbDatabaseError extends Error {
|
|
|
476
476
|
options: DdbRpcOptions;
|
|
477
477
|
constructor(message: string, ddb: DDB, type: DdbRpcType, options: DdbRpcOptions);
|
|
478
478
|
}
|
|
479
|
+
export interface DdbOptions {
|
|
480
|
+
autologin?: boolean;
|
|
481
|
+
username?: string;
|
|
482
|
+
password?: string;
|
|
483
|
+
python?: boolean;
|
|
484
|
+
streaming?: StreamingParams;
|
|
485
|
+
verbose?: boolean;
|
|
486
|
+
}
|
|
479
487
|
export declare class DDB {
|
|
480
488
|
/** 当前的 session id (http 或 tcp) */
|
|
481
489
|
sid: string;
|
|
@@ -526,7 +534,7 @@ export declare class DDB {
|
|
|
526
534
|
使用 WebSocket URL 初始化连接到 DolphinDB 的实例(不建立实际的网络连接)
|
|
527
535
|
Initialize an instance of DolphinDB Client using the WebSocket URL (without establishing an actual network connection)
|
|
528
536
|
- url: DolphinDB WebSocket URL. e.g.:`ws://127.0.0.1:8848`
|
|
529
|
-
- options?:
|
|
537
|
+
- options?: DdbOptions
|
|
530
538
|
- autologin?: 是否在建立连接后自动登录,默认 `true` Whether to log in automatically after establishing a connection, default `true`
|
|
531
539
|
- username?: DolphinDB 登录用户名,默认 `'admin'` DolphinDB username, default `'admin'`
|
|
532
540
|
- password?: DolphinDB 登录密码,默认 `'123456'` DolphinDB password, default `'123456'`
|
|
@@ -543,16 +551,8 @@ export declare class DDB {
|
|
|
543
551
|
username: 'admin',
|
|
544
552
|
password: '123456',
|
|
545
553
|
python: false
|
|
546
|
-
})
|
|
547
|
-
|
|
548
|
-
constructor(url: string, options?: {
|
|
549
|
-
autologin?: boolean;
|
|
550
|
-
username?: string;
|
|
551
|
-
password?: string;
|
|
552
|
-
python?: boolean;
|
|
553
|
-
streaming?: StreamingParams;
|
|
554
|
-
verbose?: boolean;
|
|
555
|
-
});
|
|
554
|
+
}) */
|
|
555
|
+
constructor(url: string, options?: DdbOptions);
|
|
556
556
|
private on_message;
|
|
557
557
|
private on_error;
|
|
558
558
|
/** 调用后会确保和数据库的连接是正常的 (this.connected === true && this.errored === false),否则抛出错误
|
package/index.js
CHANGED
|
@@ -2219,7 +2219,7 @@ class DDB {
|
|
|
2219
2219
|
使用 WebSocket URL 初始化连接到 DolphinDB 的实例(不建立实际的网络连接)
|
|
2220
2220
|
Initialize an instance of DolphinDB Client using the WebSocket URL (without establishing an actual network connection)
|
|
2221
2221
|
- url: DolphinDB WebSocket URL. e.g.:`ws://127.0.0.1:8848`
|
|
2222
|
-
- options?:
|
|
2222
|
+
- options?: DdbOptions
|
|
2223
2223
|
- autologin?: 是否在建立连接后自动登录,默认 `true` Whether to log in automatically after establishing a connection, default `true`
|
|
2224
2224
|
- username?: DolphinDB 登录用户名,默认 `'admin'` DolphinDB username, default `'admin'`
|
|
2225
2225
|
- password?: DolphinDB 登录密码,默认 `'123456'` DolphinDB password, default `'123456'`
|
|
@@ -2236,8 +2236,7 @@ class DDB {
|
|
|
2236
2236
|
username: 'admin',
|
|
2237
2237
|
password: '123456',
|
|
2238
2238
|
python: false
|
|
2239
|
-
})
|
|
2240
|
-
*/
|
|
2239
|
+
}) */
|
|
2241
2240
|
constructor(url, options = {}) {
|
|
2242
2241
|
this.url = url;
|
|
2243
2242
|
if (options.verbose !== undefined)
|