knexfile.js 476 B

12345678910111213141516171819202122
  1. require('dotenv').config();
  2. module.exports = {
  3. client: process.env.DB_CLIENT,
  4. connection: {
  5. host: process.env.DB_HOST,
  6. user: process.env.DB_USER,
  7. password: process.env.DB_PASSWORD,
  8. database: process.env.DB_DATABASE,
  9. filename: 'database.sqlite'
  10. },
  11. pool: {
  12. min: process.env.DATABASE_POOL_MIN || 2,
  13. max: process.env.DATABASE_POOL_MAX || 10
  14. },
  15. migrations: {
  16. directory: 'src/api/database/migrations'
  17. },
  18. seeds: {
  19. directory: 'src/api/database/seeds'
  20. }
  21. };