mysql2 3.2.1 → 3.2.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/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Connection as PromiseConnection,
|
|
3
|
-
Pool as PromisePool,
|
|
4
3
|
PoolConnection as PromisePoolConnection,
|
|
5
4
|
} from './promise';
|
|
6
5
|
|
|
@@ -71,7 +70,6 @@ export interface Connection extends mysql.Connection {
|
|
|
71
70
|
) => any
|
|
72
71
|
): mysql.Query;
|
|
73
72
|
ping(callback?: (err: mysql.QueryError | null) => any): void;
|
|
74
|
-
promise(promiseImpl?: PromiseConstructor): PromiseConnection;
|
|
75
73
|
unprepare(sql: string): mysql.PrepareStatementInfo;
|
|
76
74
|
prepare(sql: string, callback?: (err: mysql.QueryError | null, statement: mysql.PrepareStatementInfo) => any): mysql.Prepare;
|
|
77
75
|
serverHandshake(args: any): any;
|
|
@@ -157,7 +155,6 @@ export interface Pool extends mysql.Connection {
|
|
|
157
155
|
on(event: 'acquire', listener: (connection: PoolConnection) => any): this;
|
|
158
156
|
on(event: 'release', listener: (connection: PoolConnection) => any): this;
|
|
159
157
|
on(event: 'enqueue', listener: () => any): this;
|
|
160
|
-
promise(promiseImpl?: PromiseConstructor): PromisePool;
|
|
161
158
|
unprepare(sql: string): mysql.PrepareStatementInfo;
|
|
162
159
|
prepare(sql: string, callback?: (err: mysql.QueryError | null, statement: mysql.PrepareStatementInfo) => any): mysql.Prepare;
|
|
163
160
|
|
package/package.json
CHANGED
package/typings/mysql/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import BasePrepare = require('./lib/protocol/sequences/Prepare');
|
|
|
12
12
|
import {QueryOptions, StreamOptions, QueryError} from './lib/protocol/sequences/Query';
|
|
13
13
|
import {PrepareStatementInfo} from './lib/protocol/sequences/Prepare';
|
|
14
14
|
import Server = require('./lib/Server');
|
|
15
|
+
import { Pool as PromisePool } from '../../promise';
|
|
15
16
|
|
|
16
17
|
export function createConnection(connectionUri: string): Connection;
|
|
17
18
|
export function createConnection(config: BaseConnection.ConnectionOptions): Connection;
|
|
@@ -39,7 +40,9 @@ export {
|
|
|
39
40
|
export * from './lib/protocol/packets/index';
|
|
40
41
|
|
|
41
42
|
// Expose class interfaces
|
|
42
|
-
export interface Connection extends BaseConnection {
|
|
43
|
+
export interface Connection extends BaseConnection {
|
|
44
|
+
promise(promiseImpl?: PromiseConstructor): PromisePool;
|
|
45
|
+
}
|
|
43
46
|
export interface PoolConnection extends BasePoolConnection {}
|
|
44
47
|
export interface Pool extends BasePool {}
|
|
45
48
|
export interface PoolCluster extends BasePoolCluster {}
|