Update mysql => mysql2

This commit is contained in:
Elliot Konetzni 2020-11-30 10:46:13 +01:00 committed by E Konetzni
parent e08712e936
commit f8694415e5

View File

@ -1,4 +1,4 @@
import type * as MYSQL from "mysql";
import type * as MYSQL from "mysql2";
import { ConnectionOptions } from "typeorm";
import * as TypeormDriver from "typeorm/driver/mysql/MysqlDriver";
import { DataTypeDefaults } from "typeorm/driver/types/DataTypeDefaults";
@ -32,7 +32,7 @@ export default class MysqlDriver extends AbstractDriver {
super();
try {
// eslint-disable-next-line import/no-extraneous-dependencies, global-require, import/no-unresolved
this.MYSQL = require("mysql");
this.MYSQL = require("mysql2");
} catch (error) {
TomgUtils.LogError("", false, error);
throw error;