The database layer of a BI stack: a PostgreSQL server, an admin UI and automated table loading from CSV files.
42 Abu Dhabi, Data Science Piscine, module 0: data engineering with PostgreSQL.
| Exercise | Path | What it does |
|---|---|---|
| ex00 | ex00/docker-compose.yml |
PostgreSQL 16 in Docker, local port only |
| ex01 | ex01/docker-compose.yml |
pgAdmin to browse the database |
| ex02 | ex02/table.sql |
One table by hand from one CSV, six data types |
| ex03 | ex03/automatic_table.sh |
One table per CSV file in customer/ |
| ex04 | ex04/items_table.sql |
The items table |
Stack: Docker Compose, PostgreSQL, pgAdmin, SQL, POSIX shell.
docker compose -f ex00/docker-compose.yml up -d
psql -U myousaf -d piscineds -h localhost -W -f ex02/table.sql
./ex03/automatic_table.sh customerThe CSV data comes from the subject and is not in this repo. The default credentials are the values the subject fixes. They are for a local database only.