Updated database environment

This commit is contained in:
Alexis
2020-12-30 21:51:41 +01:00
parent 23ab785163
commit 0fd0253fb4
5 changed files with 95 additions and 91 deletions

View File

@@ -1,6 +1,5 @@
// MODULES
const fs = require('fs')
const mysql = require('mysql')
const fs = require('fs');
// Setting up the database connection
const knex = require('knex')({
@@ -9,10 +8,10 @@ const knex = require('knex')({
host : process.env.DB_HOST,
user : process.env.DB_USER,
password : process.env.DB_PASSWORD,
database : "auracle",
database : process.env.DB_DATABASE,
charset : "utf8"
},
})
const bookshelf = require('bookshelf')(knex)
});
const bookshelf = require('bookshelf')(knex);
module.exports = { bookshelf }
module.exports = { bookshelf };