Konvertieren Sie JS in TS
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"),
_classCallCheck2 = _interopRequireDefault(
require("@babel/runtime/helpers/classCallCheck")
),
mVar_mysql = require("mysql2"),
mVar_Config = require("../../../config"),
MYSQL = function e() {
return (
(0, _classCallCheck2.default)(this, e),
(this.pool = mVar_mysql.createPool({
host: mVar_Config.DB_HOST,
user: mVar_Config.USER,
password: mVar_Config.PASSWORD,
database: mVar_Config.DATABASE,
multipleStatements: !0,
charset: "utf8mb4",
waitForConnections: !0,
connectionLimit: 20,
queueLimit: 5e3,
keepAliveInitialDelay: 0,
enableKeepAlive: !0,
})),
this.pool
);
};
module.exports = MYSQL;
Shiny Sandpiper