dolphindb 2.0.951 → 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 +2 -2
package/browser.d.ts
CHANGED
|
@@ -485,6 +485,14 @@ export declare class DdbDatabaseError extends Error {
|
|
|
485
485
|
options: DdbRpcOptions;
|
|
486
486
|
constructor(message: string, ddb: DDB, type: DdbRpcType, options: DdbRpcOptions);
|
|
487
487
|
}
|
|
488
|
+
export interface DdbOptions {
|
|
489
|
+
autologin?: boolean;
|
|
490
|
+
username?: string;
|
|
491
|
+
password?: string;
|
|
492
|
+
python?: boolean;
|
|
493
|
+
streaming?: StreamingParams;
|
|
494
|
+
verbose?: boolean;
|
|
495
|
+
}
|
|
488
496
|
export declare class DDB {
|
|
489
497
|
/** 当前的 session id (http 或 tcp) */
|
|
490
498
|
sid: string;
|
|
@@ -536,7 +544,7 @@ export declare class DDB {
|
|
|
536
544
|
Initialize an instance of DolphinDB Client using the WebSocket URL (without establishing an actual network connection)
|
|
537
545
|
- url?: DolphinDB WebSocket URL,如:`ws://127.0.0.1:8848`, 默认为当前页面 URL
|
|
538
546
|
DolphinDB WebSocket URL. e.g.:`ws://127.0.0.1:8848`, Defaults to the current page URL
|
|
539
|
-
- options?:
|
|
547
|
+
- options?: DdbOptions
|
|
540
548
|
- autologin?: 是否在建立连接后自动登录,默认 `true` Whether to log in automatically after establishing a connection, default `true`
|
|
541
549
|
- username?: DolphinDB 登录用户名,默认 `'admin'` DolphinDB username, default `'admin'`
|
|
542
550
|
- password?: DolphinDB 登录密码,默认 `'123456'` DolphinDB password, default `'123456'`
|
|
@@ -553,16 +561,8 @@ export declare class DDB {
|
|
|
553
561
|
username: 'admin',
|
|
554
562
|
password: '123456',
|
|
555
563
|
python: false
|
|
556
|
-
})
|
|
557
|
-
|
|
558
|
-
constructor(url?: string, options?: {
|
|
559
|
-
autologin?: boolean;
|
|
560
|
-
username?: string;
|
|
561
|
-
password?: string;
|
|
562
|
-
python?: boolean;
|
|
563
|
-
streaming?: StreamingParams;
|
|
564
|
-
verbose?: boolean;
|
|
565
|
-
});
|
|
564
|
+
}) */
|
|
565
|
+
constructor(url: string, options?: DdbOptions);
|
|
566
566
|
private on_message;
|
|
567
567
|
private on_error;
|
|
568
568
|
/** 调用后会确保和数据库的连接是正常的 (this.connected === true && this.errored === false),否则抛出错误
|
package/browser.js
CHANGED
|
@@ -2229,7 +2229,7 @@ class DDB {
|
|
|
2229
2229
|
Initialize an instance of DolphinDB Client using the WebSocket URL (without establishing an actual network connection)
|
|
2230
2230
|
- url?: DolphinDB WebSocket URL,如:`ws://127.0.0.1:8848`, 默认为当前页面 URL
|
|
2231
2231
|
DolphinDB WebSocket URL. e.g.:`ws://127.0.0.1:8848`, Defaults to the current page URL
|
|
2232
|
-
- options?:
|
|
2232
|
+
- options?: DdbOptions
|
|
2233
2233
|
- autologin?: 是否在建立连接后自动登录,默认 `true` Whether to log in automatically after establishing a connection, default `true`
|
|
2234
2234
|
- username?: DolphinDB 登录用户名,默认 `'admin'` DolphinDB username, default `'admin'`
|
|
2235
2235
|
- password?: DolphinDB 登录密码,默认 `'123456'` DolphinDB password, default `'123456'`
|
|
@@ -2246,8 +2246,7 @@ class DDB {
|
|
|
2246
2246
|
username: 'admin',
|
|
2247
2247
|
password: '123456',
|
|
2248
2248
|
python: false
|
|
2249
|
-
})
|
|
2250
|
-
*/
|
|
2249
|
+
}) */
|
|
2251
2250
|
constructor(url, options = {}) {
|
|
2252
2251
|
this.url = url;
|
|
2253
2252
|
if (options.verbose !== undefined)
|