Based on the ERD diagram of the database referenced by the task Model the MariaDB Database, implement the database using [SQLAlchemy] in the MariaDB Docker container. If you use SQLAlchemy, it will automatically create the database tables for you when you create the ORM mapped classes. The database persists across builds and starting and stopping the docker containers because the database is mapped to a persistent volume (the db folder). You will not lose progress when you shut down the docker containers with docker compose down. Make sure you shutdown the docker containers before pushing to the GitHub repository.
Summary
Based on the ERD diagram of the database referenced by the task
Model the MariaDB Database
, implement the database using [SQLAlchemy] in the MariaDB Docker container. If you use SQLAlchemy, it will automatically create the database tables for you when you create the ORM mapped classes. The database persists across builds and starting and stopping the docker containers because the database is mapped to a persistent volume (thedb
folder). You will not lose progress when you shut down the docker containers withdocker compose down
. Make sure you shutdown the docker containers before pushing to the GitHub repository.SQLAlchemy Reference
Docker Summary
docker compose up --detach
docker exec -u 0 -it comfort-airlines-db-1 bash
mariadb -u root -p
(the password istoor
)docker compose down
Group Questions
Foobar?