Guest User

Untitled

a guest
Oct 26th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. const main = require(`knex`)({
  2. client: `mysql2`,
  3. connection: {
  4. host: `localhost`,
  5. port: 3306,
  6. user: `root`,
  7. password: ``,
  8. database: `information_schema`,
  9. },
  10. });
  11.  
  12. const master = require(`knex`)({
  13. client: `mysql2`,
  14. connection: {
  15. host: `localhost`,
  16. port: 3306,
  17. user: `root`,
  18. password: ``,
  19. database: `master`,
  20. },
  21. });
  22.  
  23. const detail = require(`knex`)({
  24. client: `mysql2`,
  25. connection: {
  26. host: `localhost`,
  27. port: 3306,
  28. user: `root`,
  29. password: ``,
  30. database: `detail`,
  31. },
  32. });
  33.  
  34. module.exports = {
  35. main,
  36. master,
  37. detail,
  38. };
Add Comment
Please, Sign In to add comment