before lerna

This commit is contained in:
Leifer Mendez
2022-11-09 11:27:01 +01:00
parent 30e7b220cd
commit 24484015b3
36 changed files with 27 additions and 1323 deletions

View File

@@ -1,18 +0,0 @@
const mysql = require('mysql');
const connection = mysql.createConnection({
host : process.env.SQL_HOST || 'localhost',
user : process.env.SQL_USER || 'root',
password : process.env.SQL_PASS || '',
database : process.env.SQL_DATABASE || 'pruebas'
});
const connect = () => connection.connect(function(err) {
if (err) {
console.error('error connecting: ' + err.stack);
return;
}
console.log('Conexion correcta con tu base de datos MySQL')
});
module.exports = {connect, connection}