upgrade to mysql2 package

This commit is contained in:
Martin McKeaveney 2021-10-21 14:47:35 +01:00
parent 218996d50d
commit d573eb464a
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import { Table, TableSchema } from "../definitions/common"
import { getSqlQuery } from "./utils" import { getSqlQuery } from "./utils"
module MySQLModule { module MySQLModule {
const mysql = require("mysql") const mysql = require("mysql2")
const Sql = require("./base/sql") const Sql = require("./base/sql")
const { const {
buildExternalTableId, buildExternalTableId,

View File

@ -1,5 +1,5 @@
const MySQLIntegration = require("../mysql") const MySQLIntegration = require("../mysql")
jest.mock("mysql") jest.mock("mysql2")
class TestConfiguration { class TestConfiguration {
constructor(config = { ssl: {} }) { constructor(config = { ssl: {} }) {