Lab realized as a student at ECN. This app is a python CLI (command line interface) to query a PostgreSQL database. https://github.com/DricomDragon/PythonPostgresLab
|
há 6 anos atrás | |
---|---|---|
SQL | há 6 anos atrás | |
.gitignore | há 6 anos atrás | |
README.md | há 6 anos atrás | |
app_dispatcher.py | há 6 anos atrás | |
connect.py | há 6 anos atrás |
A CLI (Command Line Interface) written in python to query a PostgreSQL database. Lab realized as a student at Ecole Centrale de Nantes (ECN).
Install postgreSQL :
sudo apt install postgresql
Connect with postgres profile :
sudo su postgres
Create the database :
psql -f SQL/create_db.sql postgres
Populate database with tables :
psql -d logistics -f SQL/create_tables.sql postgres