upgrade to mysql2 package

This commit is contained in:
Martin McKeaveney 2021-10-21 14:47:35 +01:00
parent 6c41a71827
commit 62a6c5e2b9
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: {} }) {