You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
391 B

  1. SQL test
  2. ===
  3. ### Usage
  4. - Run up Postgresql server
  5. ```bash
  6. $ docker-compose up db
  7. ```
  8. - Stop Postgresql server
  9. ```bash
  10. $ docker-compose down
  11. ```
  12. - Connect to test database on Postgresql server using psql
  13. ```bash
  14. $ docker-compose exec db psql -U postgres test
  15. ```
  16. - Execute SQL file
  17. ```bash
  18. $ docker-compose exec db psql -v ON_ERROR_STOP=1 -U postgres test -a -f "sql/schema.sql"
  19. ```