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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.11.2",
3
+ "version": "3.11.3",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "typings": "typings/mysql/index",
@@ -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
- export function escape(value: any): string;
57
-
58
- export function escapeId(value: any): string;
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?: string,
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?: string,
73
+ timeZone?: TimeZone,
73
74
  ): string;
74
75
 
75
76
  export function raw(sql: string): {