Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a database #17

Closed
raphodn opened this issue Nov 8, 2023 · 1 comment · Fixed by #20
Closed

Add a database #17

raphodn opened this issue Nov 8, 2023 · 1 comment · Fixed by #20

Comments

@raphodn
Copy link
Member

raphodn commented Nov 8, 2023

Story

We'll need a PostgreSQL database to store data.

See an example of implementation here : https://github.com/openfoodfacts/folksonomy_api/blob/main/folksonomy/api.py

Idea of using peewee for the ORM

@raphodn raphodn linked a pull request Nov 9, 2023 that will close this issue
@raphodn
Copy link
Member Author

raphodn commented Nov 10, 2023

@raphael0202 actually peewee is not recommanded for FastAPI : https://fastapi.tiangolo.com/how-to/sql-databases-peewee/

@raphodn raphodn linked a pull request Nov 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant