https://github.com/tristanleclair/exercises
Practicing Postgres
https://github.com/tristanleclair/exercises
database psql
Last synced: 4 months ago
JSON representation
Practicing Postgres
- Host: GitHub
- URL: https://github.com/tristanleclair/exercises
- Owner: TristanLeclair
- Created: 2024-06-25T10:56:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T04:35:52.000Z (about 2 years ago)
- Last Synced: 2025-02-25T21:16:56.245Z (over 1 year ago)
- Topics: database, psql
- Language: Shell
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postgres exercises
Practice postgres problems taken from [pgexercises.com](https://pgexercises.com/)
## Create and reset DB
### Locally
run `./reset_db.sh` to reset the database if running postgres locally
### With docker-compose
`docker compose down -v` will delete the volume, and when you restart the container, it'll rerun the initialization script [clubdata.sql](./init/clubdata.sql) which is automatically mounted into the container.