db.js 296 B

1234567891011121314151617
  1. const mysql = require('knex');
  2. connect = (
  3. dbconfig = {
  4. "client": "mysql",
  5. "connection": {
  6. "host": "localhost",
  7. "port": 3306,
  8. "user": "root",
  9. "password": "development",
  10. "database": "klapi",
  11. "charset" : 'utf8mb4'
  12. }
  13. }) =>
  14. mysql(dbconfig);
  15. module.exports = connect;