mysql2-core 0.3.7 → 0.3.8
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/src/index.ts +2 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Connection, createPool as createPool2, FieldPacket, Pool, PoolConnection, ResultSetHeader } from "mysql2"
|
|
2
|
+
import { Pool as PromisePool } from "mysql2/promise"
|
|
2
3
|
import { buildToSave, buildToSaveBatch } from "./build"
|
|
3
4
|
import { Attribute, Attributes, DB, Statement, StringMap, Transaction } from "./metadata"
|
|
4
5
|
|
|
@@ -993,7 +994,7 @@ export interface HealthChecker {
|
|
|
993
994
|
export class MySQLChecker implements HealthChecker {
|
|
994
995
|
protected readonly service: string
|
|
995
996
|
constructor(
|
|
996
|
-
protected readonly pool:
|
|
997
|
+
protected readonly pool: PromisePool,
|
|
997
998
|
service?: string,
|
|
998
999
|
protected readonly timeout = 4500,
|
|
999
1000
|
) {
|