|
|
@@ -1,15 +1,6 @@
|
|
|
require('dotenv').config()
|
|
|
|
|
|
-const mysql = require('mysql');
|
|
|
-const connection = mysql.createConnection({
|
|
|
- host: process.env.DB_HOST,
|
|
|
- port: process.env.DB_PORT,
|
|
|
- user: process.env.DB_USER,
|
|
|
- password: process.env.DB_PASS,
|
|
|
- database: process.env.DB_SCHEMA,
|
|
|
- charset: "utf8mb4",
|
|
|
- collation: "utf8mb4_bin",
|
|
|
-});
|
|
|
+
|
|
|
|
|
|
var knex = require('knex')({
|
|
|
client: 'mysql',
|
|
|
@@ -46,6 +37,5 @@ var knexlocal = require('knex')({
|
|
|
});
|
|
|
|
|
|
|
|
|
-module.exports.connection = connection;
|
|
|
module.exports.knex = knex;
|
|
|
module.exports.knexlocal = knexlocal;
|