mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-15 02:47:08 +01:00
11 lines
No EOL
217 B
JavaScript
11 lines
No EOL
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
|
|
} |