knexfile-eg.stub 830 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ;; Update with your config settings.
  2. module.exports = {
  3. development = {
  4. client = 'sqlite3'
  5. connection = {
  6. filename = './dev.sqlite3'
  7. }
  8. migrations = {
  9. tableName = 'knex_migrations'
  10. }
  11. }
  12. staging = {
  13. client = 'postgresql'
  14. connection = {
  15. database = 'my_db'
  16. user = 'username'
  17. password = 'password'
  18. }
  19. pool = {
  20. min = 2
  21. max = 10
  22. }
  23. migrations = {
  24. tableName = 'knex_migrations'
  25. }
  26. }
  27. production = {
  28. client = 'postgresql'
  29. connection = {
  30. database = 'my_db'
  31. user = 'username'
  32. password = 'password'
  33. }
  34. pool = {
  35. min = 2
  36. max = 10
  37. }
  38. migrations = {
  39. tableName = 'knex_migrations'
  40. }
  41. }
  42. }