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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2-core",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "mysql2-core",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
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: Pool,
997
+ protected readonly pool: PromisePool,
997
998
  service?: string,
998
999
  protected readonly timeout = 4500,
999
1000
  ) {