tedious 20.0.3 → 20.0.4
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/lib/connection.d.ts +21 -21
- package/lib/connection.js +33 -9
- package/lib/connection.js.map +1 -1
- package/lib/data-type.d.ts +3 -3
- package/lib/data-type.js +4 -4
- package/lib/data-type.js.map +1 -1
- package/lib/message-io.js +2 -2
- package/lib/message-io.js.map +1 -1
- package/lib/request.d.ts +4 -4
- package/lib/request.js +3 -3
- package/lib/request.js.map +1 -1
- package/package.json +1 -1
package/lib/connection.d.ts
CHANGED
|
@@ -85,10 +85,10 @@ interface AzureActiveDirectoryMsiAppServiceAuthentication {
|
|
|
85
85
|
type: 'azure-active-directory-msi-app-service';
|
|
86
86
|
options: {
|
|
87
87
|
/**
|
|
88
|
-
* If you
|
|
89
|
-
*
|
|
88
|
+
* If you want to connect to an Azure app service using a specific client account,
|
|
89
|
+
* you need to provide the `clientId` associated with your created identity.
|
|
90
90
|
*
|
|
91
|
-
* This is optional for
|
|
91
|
+
* This is optional for retrieving a token from Azure web app service.
|
|
92
92
|
*/
|
|
93
93
|
clientId?: string;
|
|
94
94
|
};
|
|
@@ -97,10 +97,10 @@ interface AzureActiveDirectoryMsiVmAuthentication {
|
|
|
97
97
|
type: 'azure-active-directory-msi-vm';
|
|
98
98
|
options: {
|
|
99
99
|
/**
|
|
100
|
-
* If you want to connect using a specific client account
|
|
101
|
-
*
|
|
100
|
+
* If you want to connect using a specific client account,
|
|
101
|
+
* you need to provide the `clientId` associated with your created identity.
|
|
102
102
|
*
|
|
103
|
-
* This is optional for
|
|
103
|
+
* This is optional for retrieving a token.
|
|
104
104
|
*/
|
|
105
105
|
clientId?: string;
|
|
106
106
|
};
|
|
@@ -109,10 +109,10 @@ interface AzureActiveDirectoryDefaultAuthentication {
|
|
|
109
109
|
type: 'azure-active-directory-default';
|
|
110
110
|
options: {
|
|
111
111
|
/**
|
|
112
|
-
* If you want to connect using a specific client account
|
|
113
|
-
*
|
|
112
|
+
* If you want to connect using a specific client account,
|
|
113
|
+
* you need to provide the `clientId` associated with your created identity.
|
|
114
114
|
*
|
|
115
|
-
* This is optional for retrieving a token
|
|
115
|
+
* This is optional for retrieving a token.
|
|
116
116
|
*/
|
|
117
117
|
clientId?: string;
|
|
118
118
|
};
|
|
@@ -121,8 +121,8 @@ interface AzureActiveDirectoryAccessTokenAuthentication {
|
|
|
121
121
|
type: 'azure-active-directory-access-token';
|
|
122
122
|
options: {
|
|
123
123
|
/**
|
|
124
|
-
* A user
|
|
125
|
-
* to
|
|
124
|
+
* A user needs to provide a `token` which they retrieved elsewhere
|
|
125
|
+
* to form the connection.
|
|
126
126
|
*/
|
|
127
127
|
token: string;
|
|
128
128
|
};
|
|
@@ -131,11 +131,11 @@ interface AzureActiveDirectoryPasswordAuthentication {
|
|
|
131
131
|
type: 'azure-active-directory-password';
|
|
132
132
|
options: {
|
|
133
133
|
/**
|
|
134
|
-
* A user
|
|
134
|
+
* A user needs to provide a `userName` associated with their account.
|
|
135
135
|
*/
|
|
136
136
|
userName: string;
|
|
137
137
|
/**
|
|
138
|
-
* A user
|
|
138
|
+
* A user needs to provide a `password` associated with their account.
|
|
139
139
|
*/
|
|
140
140
|
password: string;
|
|
141
141
|
/**
|
|
@@ -414,12 +414,12 @@ export interface ConnectionOptions {
|
|
|
414
414
|
* * `SERIALIZABLE`
|
|
415
415
|
* * `SNAPSHOT`
|
|
416
416
|
*
|
|
417
|
-
* (default: `
|
|
417
|
+
* (default: `READ_COMMITTED`).
|
|
418
418
|
*/
|
|
419
419
|
connectionIsolationLevel?: number;
|
|
420
420
|
/**
|
|
421
421
|
* When encryption is used, an object may be supplied that will be used
|
|
422
|
-
* for the first argument when calling [`tls.
|
|
422
|
+
* for the first argument when calling [`tls.createSecureContext`](https://nodejs.org/docs/latest/api/tls.html#tlscreatesecurecontextoptions).
|
|
423
423
|
*
|
|
424
424
|
* (default: `{}`)
|
|
425
425
|
*/
|
|
@@ -494,7 +494,7 @@ export interface ConnectionOptions {
|
|
|
494
494
|
*/
|
|
495
495
|
enableImplicitTransactions?: boolean;
|
|
496
496
|
/**
|
|
497
|
-
* If false, error is not generated during loss of
|
|
497
|
+
* If false, error is not generated during loss of precision.
|
|
498
498
|
*
|
|
499
499
|
* (default: `false`)
|
|
500
500
|
*/
|
|
@@ -540,7 +540,7 @@ export interface ConnectionOptions {
|
|
|
540
540
|
* * `SERIALIZABLE`
|
|
541
541
|
* * `SNAPSHOT`
|
|
542
542
|
*
|
|
543
|
-
* (default: `
|
|
543
|
+
* (default: `READ_COMMITTED`).
|
|
544
544
|
*/
|
|
545
545
|
isolationLevel?: number;
|
|
546
546
|
/**
|
|
@@ -560,7 +560,7 @@ export interface ConnectionOptions {
|
|
|
560
560
|
*/
|
|
561
561
|
lowerCaseGuids?: boolean;
|
|
562
562
|
/**
|
|
563
|
-
* The maximum number of connection retries for transient errors
|
|
563
|
+
* The maximum number of connection retries for transient errors.
|
|
564
564
|
*
|
|
565
565
|
* (default: `3`).
|
|
566
566
|
*/
|
|
@@ -881,7 +881,7 @@ declare class Connection extends EventEmitter {
|
|
|
881
881
|
*/
|
|
882
882
|
on(event: 'connect',
|
|
883
883
|
/**
|
|
884
|
-
* @param err If successfully connected, will be
|
|
884
|
+
* @param err If successfully connected, will be falsy. If there was a
|
|
885
885
|
* problem (with either connecting or validation), will be an [[Error]] object.
|
|
886
886
|
*/
|
|
887
887
|
listener: (err: Error | undefined) => void): this;
|
|
@@ -1083,10 +1083,10 @@ declare class Connection extends EventEmitter {
|
|
|
1083
1083
|
getInitialSql(): string;
|
|
1084
1084
|
/**
|
|
1085
1085
|
* Execute the SQL batch represented by [[Request]].
|
|
1086
|
-
* There is no param support, and unlike [[
|
|
1086
|
+
* There is no param support, and unlike [[execSql]],
|
|
1087
1087
|
* it is not likely that SQL Server will reuse the execution plan it generates for the SQL.
|
|
1088
1088
|
*
|
|
1089
|
-
* In almost all cases, [[
|
|
1089
|
+
* In almost all cases, [[execSql]] will be a better choice.
|
|
1090
1090
|
*
|
|
1091
1091
|
* @param request A [[Request]] object representing the request.
|
|
1092
1092
|
*/
|