const mysql = require('knex'); connect = ( dbconfig = { "client": "mysql", "connection": { "host": "localhost", "port": 3306, "user": "root", "password": "development", "database": "klapi", "charset" : 'utf8mb4' } }) => mysql(dbconfig); module.exports = connect;