mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-14 18:36:20 +01:00
11 lines
217 B
JavaScript
11 lines
217 B
JavaScript
|
var mysql = require('mysql2');
|
||
|
const config = require('../config');
|
||
|
|
||
|
function connect(sql, params) {
|
||
|
const connection = mysql.createConnection(config.db);
|
||
|
return connection;
|
||
|
}
|
||
|
|
||
|
module.exports = {
|
||
|
connect
|
||
|
}
|