mysql2 3.4.5 → 3.5.1
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/README.md +8 -0
- package/lib/connection.js +24 -87
- package/lib/packets/column_definition.js +149 -1
- package/lib/packets/resultset_header.js +2 -0
- package/package.json +2 -2
- package/typings/mysql/lib/protocol/packets/OkPacket.d.ts +8 -0
- package/typings/mysql/lib/protocol/packets/ProcedurePacket.d.ts +4 -9
- package/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts +5 -1
- package/typings/mysql/lib/protocol/sequences/ExecutableBase.d.ts +4 -0
- package/typings/mysql/lib/protocol/sequences/QueryableBase.d.ts +4 -0
- package/typings/mysql/lib/protocol/sequences/promise/ExecutableBase.d.ts +4 -0
- package/typings/mysql/lib/protocol/sequences/promise/QueryableBase.d.ts +4 -0
package/README.md
CHANGED
|
@@ -53,6 +53,14 @@ MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Win
|
|
|
53
53
|
npm install --save mysql2
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
If you are using TypeScript, you will need to install `@types/node`.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm install --save-dev @types/node
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
> For TypeScript documentation and examples, see [here](./documentation/en/TypeScript-Examples.md).
|
|
63
|
+
|
|
56
64
|
## First Query
|
|
57
65
|
```js
|
|
58
66
|
// get the client
|
package/lib/connection.js
CHANGED
|
@@ -355,62 +355,43 @@ class Connection extends EventEmitter {
|
|
|
355
355
|
});
|
|
356
356
|
const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
|
|
357
357
|
const verifyIdentity = this.config.ssl.verifyIdentity;
|
|
358
|
-
const
|
|
358
|
+
const servername = this.config.host;
|
|
359
359
|
|
|
360
360
|
let secureEstablished = false;
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
361
|
+
this.stream.removeAllListeners('data');
|
|
362
|
+
const secureSocket = Tls.connect({
|
|
363
|
+
rejectUnauthorized,
|
|
364
|
+
requestCert: rejectUnauthorized,
|
|
365
|
+
secureContext,
|
|
366
|
+
isServer: false,
|
|
367
|
+
socket: this.stream,
|
|
368
|
+
servername
|
|
369
|
+
}, () => {
|
|
370
|
+
secureEstablished = true;
|
|
371
|
+
if (rejectUnauthorized) {
|
|
372
|
+
if (typeof servername === 'string' && verifyIdentity) {
|
|
373
|
+
const cert = secureSocket.getPeerCertificate(true);
|
|
374
|
+
const serverIdentityCheckError = Tls.checkServerIdentity(servername, cert);
|
|
375
|
+
if (serverIdentityCheckError) {
|
|
376
|
+
onSecure(serverIdentityCheckError);
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
onSecure();
|
|
366
382
|
});
|
|
367
|
-
if (typeof host === 'string') {
|
|
368
|
-
secureSocket.setServername(host);
|
|
369
|
-
}
|
|
370
383
|
// error handler for secure socket
|
|
371
|
-
secureSocket.on('
|
|
384
|
+
secureSocket.on('error', err => {
|
|
372
385
|
if (secureEstablished) {
|
|
373
386
|
this._handleNetworkError(err);
|
|
374
387
|
} else {
|
|
375
388
|
onSecure(err);
|
|
376
389
|
}
|
|
377
390
|
});
|
|
378
|
-
secureSocket.on('secure', () => {
|
|
379
|
-
secureEstablished = true;
|
|
380
|
-
let callbackValue = null;
|
|
381
|
-
if (rejectUnauthorized) {
|
|
382
|
-
callbackValue = secureSocket.ssl.verifyError()
|
|
383
|
-
if (!callbackValue && typeof host === 'string' && verifyIdentity) {
|
|
384
|
-
const cert = secureSocket.ssl.getPeerCertificate(true);
|
|
385
|
-
callbackValue = Tls.checkServerIdentity(host, cert)
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
onSecure(callbackValue);
|
|
389
|
-
});
|
|
390
391
|
secureSocket.on('data', data => {
|
|
391
392
|
this.packetParser.execute(data);
|
|
392
393
|
});
|
|
393
|
-
this.write = buffer =>
|
|
394
|
-
secureSocket.write(buffer);
|
|
395
|
-
};
|
|
396
|
-
// start TLS communications
|
|
397
|
-
secureSocket._start();
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
pipe() {
|
|
401
|
-
if (this.stream instanceof Net.Stream) {
|
|
402
|
-
this.stream.ondata = (data, start, end) => {
|
|
403
|
-
this.packetParser.execute(data, start, end);
|
|
404
|
-
};
|
|
405
|
-
} else {
|
|
406
|
-
this.stream.on('data', data => {
|
|
407
|
-
this.packetParser.execute(
|
|
408
|
-
data.parent,
|
|
409
|
-
data.offset,
|
|
410
|
-
data.offset + data.length
|
|
411
|
-
);
|
|
412
|
-
});
|
|
413
|
-
}
|
|
394
|
+
this.write = buffer => secureSocket.write(buffer);
|
|
414
395
|
}
|
|
415
396
|
|
|
416
397
|
protocolError(message, code) {
|
|
@@ -948,48 +929,4 @@ class Connection extends EventEmitter {
|
|
|
948
929
|
}
|
|
949
930
|
}
|
|
950
931
|
|
|
951
|
-
if (Tls.TLSSocket) {
|
|
952
|
-
// not supported
|
|
953
|
-
} else {
|
|
954
|
-
Connection.prototype.startTLS = function _startTLS(onSecure) {
|
|
955
|
-
if (this.config.debug) {
|
|
956
|
-
// eslint-disable-next-line no-console
|
|
957
|
-
console.log('Upgrading connection to TLS');
|
|
958
|
-
}
|
|
959
|
-
const crypto = require('crypto');
|
|
960
|
-
const config = this.config;
|
|
961
|
-
const stream = this.stream;
|
|
962
|
-
const rejectUnauthorized = this.config.ssl.rejectUnauthorized;
|
|
963
|
-
const credentials = crypto.createCredentials({
|
|
964
|
-
key: config.ssl.key,
|
|
965
|
-
cert: config.ssl.cert,
|
|
966
|
-
passphrase: config.ssl.passphrase,
|
|
967
|
-
ca: config.ssl.ca,
|
|
968
|
-
ciphers: config.ssl.ciphers
|
|
969
|
-
});
|
|
970
|
-
const securePair = Tls.createSecurePair(
|
|
971
|
-
credentials,
|
|
972
|
-
false,
|
|
973
|
-
true,
|
|
974
|
-
rejectUnauthorized
|
|
975
|
-
);
|
|
976
|
-
|
|
977
|
-
if (stream.ondata) {
|
|
978
|
-
stream.ondata = null;
|
|
979
|
-
}
|
|
980
|
-
stream.removeAllListeners('data');
|
|
981
|
-
stream.pipe(securePair.encrypted);
|
|
982
|
-
securePair.encrypted.pipe(stream);
|
|
983
|
-
securePair.cleartext.on('data', data => {
|
|
984
|
-
this.packetParser.execute(data);
|
|
985
|
-
});
|
|
986
|
-
this.write = function(buffer) {
|
|
987
|
-
securePair.cleartext.write(buffer);
|
|
988
|
-
};
|
|
989
|
-
securePair.on('secure', () => {
|
|
990
|
-
onSecure(rejectUnauthorized ? securePair.ssl.verifyError() : null);
|
|
991
|
-
});
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
|
|
995
932
|
module.exports = Connection;
|
|
@@ -66,14 +66,162 @@ class ColumnDefinition {
|
|
|
66
66
|
table: this.table,
|
|
67
67
|
orgTable: this.orgTable,
|
|
68
68
|
characterSet: this.characterSet,
|
|
69
|
+
encoding: this.encoding,
|
|
69
70
|
columnLength: this.columnLength,
|
|
70
|
-
columnType: this.columnType,
|
|
71
71
|
type: this.columnType,
|
|
72
72
|
flags: this.flags,
|
|
73
73
|
decimals: this.decimals
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
[Symbol.for('nodejs.util.inspect.custom')](depth, inspectOptions, inspect) {
|
|
78
|
+
const Types = require('../constants/types.js');
|
|
79
|
+
const typeNames = [];
|
|
80
|
+
for (const t in Types) {
|
|
81
|
+
typeNames[Types[t]] = t;
|
|
82
|
+
}
|
|
83
|
+
const fiedFlags = require('../constants/field_flags.js');
|
|
84
|
+
const flagNames = [];
|
|
85
|
+
// TODO: respect inspectOptions.showHidden
|
|
86
|
+
//const inspectFlags = inspectOptions.showHidden ? this.flags : this.flags & ~fiedFlags.PRI_KEY;
|
|
87
|
+
const inspectFlags = this.flags;
|
|
88
|
+
for (const f in fiedFlags) {
|
|
89
|
+
if (inspectFlags & fiedFlags[f]) {
|
|
90
|
+
if (f === 'PRI_KEY') {
|
|
91
|
+
flagNames.push('PRIMARY KEY');
|
|
92
|
+
} else if (f === 'NOT_NULL') {
|
|
93
|
+
flagNames.push('NOT NULL');
|
|
94
|
+
} else if (f === 'BINARY') {
|
|
95
|
+
// ignore flag for now
|
|
96
|
+
} else if (f === 'MULTIPLE_KEY') {
|
|
97
|
+
// not sure if that should be part of inspection.
|
|
98
|
+
// in the schema usually this is part of index definition
|
|
99
|
+
// example: UNIQUE KEY `my_uniq_id` (`id_box_elements`,`id_router`)
|
|
100
|
+
// note that only first column has MULTIPLE_KEY flag set in this case
|
|
101
|
+
// so there is no good way of knowing that this is part of index just
|
|
102
|
+
// by looking at indifidual field flags
|
|
103
|
+
} else if (f === 'NO_DEFAULT_VALUE') {
|
|
104
|
+
// almost the same as NOT_NULL?
|
|
105
|
+
} else if (f === 'BLOB') {
|
|
106
|
+
// included in the type
|
|
107
|
+
} else if (f === 'UNSIGNED') {
|
|
108
|
+
// this should be first after type
|
|
109
|
+
} else if (f === 'TIMESTAMP') {
|
|
110
|
+
// timestamp flag is redundant for inspection - already included in type
|
|
111
|
+
} else if (f === 'ON_UPDATE_NOW') {
|
|
112
|
+
flagNames.push('ON UPDATE CURRENT_TIMESTAMP');
|
|
113
|
+
} else {
|
|
114
|
+
flagNames.push(f);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (depth > 1) {
|
|
120
|
+
return inspect({
|
|
121
|
+
...this.inspect(),
|
|
122
|
+
typeName: typeNames[this.columnType],
|
|
123
|
+
flags: flagNames,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
const isUnsigned = this.flags & fiedFlags.UNSIGNED;
|
|
128
|
+
|
|
129
|
+
let typeName = typeNames[this.columnType];
|
|
130
|
+
if (typeName === 'BLOB') {
|
|
131
|
+
// TODO: check for non-utf8mb4 encoding
|
|
132
|
+
if (this.columnLength === 4294967295) {
|
|
133
|
+
typeName = 'LONGTEXT';
|
|
134
|
+
} else if (this.columnLength === 67108860) {
|
|
135
|
+
typeName = 'MEDIUMTEXT';
|
|
136
|
+
} else if (this.columnLength === 262140) {
|
|
137
|
+
typeName = 'TEXT';
|
|
138
|
+
} else if (this.columnLength === 1020) { // 255*4
|
|
139
|
+
typeName = 'TINYTEXT';
|
|
140
|
+
} else {
|
|
141
|
+
typeName = `BLOB(${this.columnLength})`;
|
|
142
|
+
}
|
|
143
|
+
} else if (typeName === 'VAR_STRING') {
|
|
144
|
+
// TODO: check for non-utf8mb4 encoding
|
|
145
|
+
typeName = `VARCHAR(${Math.ceil(this.columnLength/4)})`;
|
|
146
|
+
} else if (typeName === 'TINY') {
|
|
147
|
+
if (
|
|
148
|
+
(this.columnLength === 3 && isUnsigned) ||
|
|
149
|
+
(this.columnLength === 4 && !isUnsigned) ) {
|
|
150
|
+
typeName = 'TINYINT';
|
|
151
|
+
} else {
|
|
152
|
+
typeName = `TINYINT(${this.columnLength})`;
|
|
153
|
+
}
|
|
154
|
+
} else if (typeName === 'LONGLONG') {
|
|
155
|
+
if (this.columnLength === 20) {
|
|
156
|
+
typeName = 'BIGINT';
|
|
157
|
+
} else {
|
|
158
|
+
typeName = `BIGINT(${this.columnLength})`;
|
|
159
|
+
}
|
|
160
|
+
} else if (typeName === 'SHORT') {
|
|
161
|
+
if (isUnsigned && this.columnLength === 5) {
|
|
162
|
+
typeName = 'SMALLINT';
|
|
163
|
+
} else if (!isUnsigned && this.columnLength === 6) {
|
|
164
|
+
typeName = 'SMALLINT';
|
|
165
|
+
} else {
|
|
166
|
+
typeName = `SMALLINT(${this.columnLength})`;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
} else if (typeName === 'LONG') {
|
|
170
|
+
if (isUnsigned && this.columnLength === 10) {
|
|
171
|
+
typeName = 'INT';
|
|
172
|
+
} else if (!isUnsigned && this.columnLength === 11) {
|
|
173
|
+
typeName = 'INT';
|
|
174
|
+
} else {
|
|
175
|
+
typeName = `INT(${this.columnLength})`;
|
|
176
|
+
}
|
|
177
|
+
} else if (typeName === 'INT24') {
|
|
178
|
+
if (isUnsigned && this.columnLength === 8) {
|
|
179
|
+
typeName = 'MEDIUMINT';
|
|
180
|
+
} else if (!isUnsigned && this.columnLength === 9) {
|
|
181
|
+
typeName = 'MEDIUMINT';
|
|
182
|
+
} else {
|
|
183
|
+
typeName = `MEDIUMINT(${this.columnLength})`;
|
|
184
|
+
}
|
|
185
|
+
} else if (typeName === 'DOUBLE') {
|
|
186
|
+
// DOUBLE without modifiers is reported as DOUBLE(22, 31)
|
|
187
|
+
if (this.columnLength === 22 && this.decimals === 31) {
|
|
188
|
+
typeName = 'DOUBLE';
|
|
189
|
+
} else {
|
|
190
|
+
typeName = `DOUBLE(${this.columnLength},${this.decimals})`;
|
|
191
|
+
}
|
|
192
|
+
} else if (typeName === 'FLOAT') {
|
|
193
|
+
// FLOAT without modifiers is reported as FLOAT(12, 31)
|
|
194
|
+
if (this.columnLength === 12 && this.decimals === 31) {
|
|
195
|
+
typeName = 'FLOAT';
|
|
196
|
+
} else {
|
|
197
|
+
typeName = `FLOAT(${this.columnLength},${this.decimals})`;
|
|
198
|
+
}
|
|
199
|
+
} else if (typeName === 'NEWDECIMAL') {
|
|
200
|
+
if (this.columnLength === 11 && this.decimals === 0) {
|
|
201
|
+
typeName = 'DECIMAL';
|
|
202
|
+
} else if (this.decimals === 0) {
|
|
203
|
+
// not sure why, but DECIMAL(13) is reported as DECIMAL(14, 0)
|
|
204
|
+
// and DECIMAL(13, 9) is reported as NEWDECIMAL(15, 9)
|
|
205
|
+
if (isUnsigned) {
|
|
206
|
+
typeName = `DECIMAL(${this.columnLength})`;
|
|
207
|
+
} else {
|
|
208
|
+
typeName = `DECIMAL(${this.columnLength - 1})`;
|
|
209
|
+
}
|
|
210
|
+
} else {
|
|
211
|
+
typeName = `DECIMAL(${this.columnLength - 2},${this.decimals})`;
|
|
212
|
+
}
|
|
213
|
+
} else {
|
|
214
|
+
typeName = `${typeNames[this.columnType]}(${this.columnLength})`;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (isUnsigned) {
|
|
218
|
+
typeName += ' UNSIGNED';
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
// TODO respect colors option
|
|
222
|
+
return `\`${this.name}\` ${[typeName, ...flagNames].join(' ')}`;
|
|
223
|
+
}
|
|
224
|
+
|
|
77
225
|
static toPacket(column, sequenceId) {
|
|
78
226
|
let length = 17; // = 4 padding + 1 + 12 for the rest
|
|
79
227
|
fields.forEach(field => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysql2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"husky": "^8.0.2",
|
|
82
82
|
"lint-staged": "^13.0.3",
|
|
83
83
|
"portfinder": "^1.0.28",
|
|
84
|
-
"prettier": "^
|
|
84
|
+
"prettier": "^3.0.0",
|
|
85
85
|
"progress": "^2.0.3",
|
|
86
86
|
"typescript": "^5.0.2",
|
|
87
87
|
"urun": "0.0.8",
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
* `OkPacket` is deprecated and might be removed in the future major release. Please use `ResultSetHeader` instead.
|
|
4
|
+
*/
|
|
1
5
|
declare interface OkPacket {
|
|
2
6
|
constructor: {
|
|
3
7
|
name: 'OkPacket';
|
|
4
8
|
};
|
|
5
9
|
fieldCount: number;
|
|
6
10
|
affectedRows: number;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
* `changedRows` is deprecated and might be removed in the future major release. Please use `affectedRows` property instead.
|
|
14
|
+
*/
|
|
7
15
|
changedRows: number;
|
|
8
16
|
insertId: number;
|
|
9
17
|
serverStatus: number;
|
|
@@ -3,16 +3,11 @@ import { ResultSetHeader } from './ResultSetHeader.js';
|
|
|
3
3
|
import { RowDataPacket } from './RowDataPacket.js';
|
|
4
4
|
|
|
5
5
|
declare type ProcedureCallPacket<
|
|
6
|
-
T = RowDataPacket[]
|
|
6
|
+
T = [RowDataPacket[], ResultSetHeader] | ResultSetHeader,
|
|
7
7
|
> = T extends RowDataPacket[]
|
|
8
|
-
? [
|
|
9
|
-
: T extends
|
|
10
|
-
? [...T, ResultSetHeader]
|
|
11
|
-
: T extends ResultSetHeader | OkPacket | OkPacket[]
|
|
8
|
+
? [T, ResultSetHeader]
|
|
9
|
+
: T extends ResultSetHeader | OkPacket
|
|
12
10
|
? ResultSetHeader
|
|
13
|
-
:
|
|
14
|
-
| [...RowDataPacket[], ResultSetHeader]
|
|
15
|
-
| [...RowDataPacket[][], ResultSetHeader]
|
|
16
|
-
| ResultSetHeader;
|
|
11
|
+
: [RowDataPacket[], ResultSetHeader] | ResultSetHeader;
|
|
17
12
|
|
|
18
13
|
export { ProcedureCallPacket };
|
|
@@ -8,7 +8,11 @@ declare interface ResultSetHeader {
|
|
|
8
8
|
insertId: number;
|
|
9
9
|
serverStatus: number;
|
|
10
10
|
warningStatus: number;
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
* `changedRows` is deprecated and might be removed in the future major release. Please use `affectedRows` property instead.
|
|
14
|
+
*/
|
|
15
|
+
changedRows: number;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
export { ResultSetHeader };
|
|
@@ -20,6 +20,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
20
20
|
T extends
|
|
21
21
|
| OkPacket
|
|
22
22
|
| ResultSetHeader
|
|
23
|
+
| ResultSetHeader[]
|
|
23
24
|
| RowDataPacket[]
|
|
24
25
|
| RowDataPacket[][]
|
|
25
26
|
| OkPacket[]
|
|
@@ -34,6 +35,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
34
35
|
T extends
|
|
35
36
|
| OkPacket
|
|
36
37
|
| ResultSetHeader
|
|
38
|
+
| ResultSetHeader[]
|
|
37
39
|
| RowDataPacket[]
|
|
38
40
|
| RowDataPacket[][]
|
|
39
41
|
| OkPacket[]
|
|
@@ -49,6 +51,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
49
51
|
T extends
|
|
50
52
|
| OkPacket
|
|
51
53
|
| ResultSetHeader
|
|
54
|
+
| ResultSetHeader[]
|
|
52
55
|
| RowDataPacket[]
|
|
53
56
|
| RowDataPacket[][]
|
|
54
57
|
| OkPacket[]
|
|
@@ -63,6 +66,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
63
66
|
T extends
|
|
64
67
|
| OkPacket
|
|
65
68
|
| ResultSetHeader
|
|
69
|
+
| ResultSetHeader[]
|
|
66
70
|
| RowDataPacket[]
|
|
67
71
|
| RowDataPacket[][]
|
|
68
72
|
| OkPacket[]
|
|
@@ -20,6 +20,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
20
20
|
T extends
|
|
21
21
|
| OkPacket
|
|
22
22
|
| ResultSetHeader
|
|
23
|
+
| ResultSetHeader[]
|
|
23
24
|
| RowDataPacket[]
|
|
24
25
|
| RowDataPacket[][]
|
|
25
26
|
| OkPacket[]
|
|
@@ -34,6 +35,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
34
35
|
T extends
|
|
35
36
|
| OkPacket
|
|
36
37
|
| ResultSetHeader
|
|
38
|
+
| ResultSetHeader[]
|
|
37
39
|
| RowDataPacket[]
|
|
38
40
|
| RowDataPacket[][]
|
|
39
41
|
| OkPacket[]
|
|
@@ -49,6 +51,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
49
51
|
T extends
|
|
50
52
|
| OkPacket
|
|
51
53
|
| ResultSetHeader
|
|
54
|
+
| ResultSetHeader[]
|
|
52
55
|
| RowDataPacket[]
|
|
53
56
|
| RowDataPacket[][]
|
|
54
57
|
| OkPacket[]
|
|
@@ -63,6 +66,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
63
66
|
T extends
|
|
64
67
|
| OkPacket
|
|
65
68
|
| ResultSetHeader
|
|
69
|
+
| ResultSetHeader[]
|
|
66
70
|
| RowDataPacket[]
|
|
67
71
|
| RowDataPacket[][]
|
|
68
72
|
| OkPacket[]
|
|
@@ -15,6 +15,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
15
15
|
T extends
|
|
16
16
|
| OkPacket
|
|
17
17
|
| ResultSetHeader
|
|
18
|
+
| ResultSetHeader[]
|
|
18
19
|
| RowDataPacket[]
|
|
19
20
|
| RowDataPacket[][]
|
|
20
21
|
| OkPacket[]
|
|
@@ -26,6 +27,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
26
27
|
T extends
|
|
27
28
|
| OkPacket
|
|
28
29
|
| ResultSetHeader
|
|
30
|
+
| ResultSetHeader[]
|
|
29
31
|
| RowDataPacket[]
|
|
30
32
|
| RowDataPacket[][]
|
|
31
33
|
| OkPacket[]
|
|
@@ -38,6 +40,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
38
40
|
T extends
|
|
39
41
|
| OkPacket
|
|
40
42
|
| ResultSetHeader
|
|
43
|
+
| ResultSetHeader[]
|
|
41
44
|
| RowDataPacket[]
|
|
42
45
|
| RowDataPacket[][]
|
|
43
46
|
| OkPacket[]
|
|
@@ -49,6 +52,7 @@ export declare function ExecutableBase<T extends QueryableConstructor>(
|
|
|
49
52
|
T extends
|
|
50
53
|
| OkPacket
|
|
51
54
|
| ResultSetHeader
|
|
55
|
+
| ResultSetHeader[]
|
|
52
56
|
| RowDataPacket[]
|
|
53
57
|
| RowDataPacket[][]
|
|
54
58
|
| OkPacket[]
|
|
@@ -15,6 +15,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
15
15
|
T extends
|
|
16
16
|
| OkPacket
|
|
17
17
|
| ResultSetHeader
|
|
18
|
+
| ResultSetHeader[]
|
|
18
19
|
| RowDataPacket[]
|
|
19
20
|
| RowDataPacket[][]
|
|
20
21
|
| OkPacket[]
|
|
@@ -26,6 +27,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
26
27
|
T extends
|
|
27
28
|
| OkPacket
|
|
28
29
|
| ResultSetHeader
|
|
30
|
+
| ResultSetHeader[]
|
|
29
31
|
| RowDataPacket[]
|
|
30
32
|
| RowDataPacket[][]
|
|
31
33
|
| OkPacket[]
|
|
@@ -38,6 +40,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
38
40
|
T extends
|
|
39
41
|
| OkPacket
|
|
40
42
|
| ResultSetHeader
|
|
43
|
+
| ResultSetHeader[]
|
|
41
44
|
| RowDataPacket[]
|
|
42
45
|
| RowDataPacket[][]
|
|
43
46
|
| OkPacket[]
|
|
@@ -49,6 +52,7 @@ export declare function QueryableBase<T extends QueryableConstructor>(
|
|
|
49
52
|
T extends
|
|
50
53
|
| OkPacket
|
|
51
54
|
| ResultSetHeader
|
|
55
|
+
| ResultSetHeader[]
|
|
52
56
|
| RowDataPacket[]
|
|
53
57
|
| RowDataPacket[][]
|
|
54
58
|
| OkPacket[]
|