mysql2 3.6.1 → 3.6.2
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.js
CHANGED
|
@@ -622,7 +622,8 @@ class Connection extends EventEmitter {
|
|
|
622
622
|
// execute(options, cb)
|
|
623
623
|
options = {
|
|
624
624
|
...options,
|
|
625
|
-
...sql
|
|
625
|
+
...sql,
|
|
626
|
+
sql: sql.sql
|
|
626
627
|
};
|
|
627
628
|
if (typeof values === 'function') {
|
|
628
629
|
cb = values;
|
|
@@ -911,7 +912,8 @@ class Connection extends EventEmitter {
|
|
|
911
912
|
// query(options, cb)
|
|
912
913
|
options = {
|
|
913
914
|
...options,
|
|
914
|
-
...sql
|
|
915
|
+
...sql,
|
|
916
|
+
sql: sql.sql
|
|
915
917
|
};
|
|
916
918
|
if (typeof values === 'function') {
|
|
917
919
|
cb = values;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysql2",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
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": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"eslint-plugin-async-await": "0.0.0",
|
|
80
80
|
"eslint-plugin-markdown": "^3.0.0",
|
|
81
81
|
"husky": "^8.0.2",
|
|
82
|
-
"lint-staged": "^
|
|
82
|
+
"lint-staged": "^14.0.1",
|
|
83
83
|
"portfinder": "^1.0.28",
|
|
84
84
|
"prettier": "^3.0.0",
|
|
85
85
|
"progress": "^2.0.3",
|
package/promise.d.ts
CHANGED
|
@@ -18,13 +18,13 @@ export * from './index.js';
|
|
|
18
18
|
|
|
19
19
|
// Expose class interfaces
|
|
20
20
|
declare class QueryableAndExecutableBase extends QueryableBaseClass(
|
|
21
|
-
ExecutableBaseClass(EventEmitter)
|
|
21
|
+
ExecutableBaseClass(EventEmitter),
|
|
22
22
|
) {}
|
|
23
23
|
|
|
24
24
|
export interface PreparedStatementInfo {
|
|
25
25
|
close(): Promise<void>;
|
|
26
26
|
execute(
|
|
27
|
-
|
|
27
|
+
parameters: any | any[] | { [param: string]: any },
|
|
28
28
|
): Promise<
|
|
29
29
|
[
|
|
30
30
|
(
|
|
@@ -34,7 +34,7 @@ export interface PreparedStatementInfo {
|
|
|
34
34
|
| OkPacket[]
|
|
35
35
|
| ResultSetHeader
|
|
36
36
|
),
|
|
37
|
-
FieldPacket[]
|
|
37
|
+
FieldPacket[],
|
|
38
38
|
]
|
|
39
39
|
>;
|
|
40
40
|
}
|
|
@@ -122,7 +122,7 @@ export interface PoolCluster extends EventEmitter {
|
|
|
122
122
|
|
|
123
123
|
export function createConnection(connectionUri: string): Promise<Connection>;
|
|
124
124
|
export function createConnection(
|
|
125
|
-
config: ConnectionOptions
|
|
125
|
+
config: ConnectionOptions,
|
|
126
126
|
): Promise<Connection>;
|
|
127
127
|
|
|
128
128
|
export function createPool(connectionUri: string): Pool;
|
|
@@ -18,7 +18,7 @@ export class PrepareStatementInfo {
|
|
|
18
18
|
| OkPacket[]
|
|
19
19
|
| ResultSetHeader
|
|
20
20
|
>(
|
|
21
|
-
|
|
21
|
+
parameters: any | any[] | { [param: string]: any },
|
|
22
22
|
callback?: (err: QueryError | null, result: T, fields: FieldPacket[]) => any
|
|
23
23
|
): Query;
|
|
24
24
|
}
|