mysql2 3.11.2 → 3.11.3
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/package.json +1 -1
- package/typings/mysql/index.d.ts +12 -11
package/package.json
CHANGED
package/typings/mysql/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* sqlstring types are based on https://www.npmjs.com/package/@types/sqlstring, version 2.3.2
|
|
3
|
+
*/
|
|
1
4
|
import { Pool as BasePool, PoolOptions } from './lib/Pool.js';
|
|
2
5
|
import {
|
|
3
6
|
Connection as BaseConnection,
|
|
@@ -53,23 +56,21 @@ export function createPool(config: PoolOptions): BasePool;
|
|
|
53
56
|
|
|
54
57
|
export function createPoolCluster(config?: PoolClusterOptions): PoolCluster;
|
|
55
58
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
export function format(sql: string): string;
|
|
61
|
-
export function format(
|
|
62
|
-
sql: string,
|
|
63
|
-
values: any[],
|
|
59
|
+
type TimeZone = 'local' | 'Z' | (string & NonNullable<unknown>);
|
|
60
|
+
export function escape(
|
|
61
|
+
value: any,
|
|
64
62
|
stringifyObjects?: boolean,
|
|
65
|
-
timeZone?:
|
|
63
|
+
timeZone?: TimeZone,
|
|
66
64
|
): string;
|
|
67
65
|
|
|
66
|
+
export function escapeId(value: any, forbidQualified?: boolean): string;
|
|
67
|
+
|
|
68
|
+
export function format(sql: string): string;
|
|
68
69
|
export function format(
|
|
69
70
|
sql: string,
|
|
70
|
-
values: any,
|
|
71
|
+
values: any | any[],
|
|
71
72
|
stringifyObjects?: boolean,
|
|
72
|
-
timeZone?:
|
|
73
|
+
timeZone?: TimeZone,
|
|
73
74
|
): string;
|
|
74
75
|
|
|
75
76
|
export function raw(sql: string): {
|