server: implement data persistence with database

Using databases + sqlite/postgresql depending of what you want.
Use DATABASE_URL to configure

Closes #70
This commit is contained in:
2023-08-15 16:31:42 +02:00
committed by Mathieu Virbel
parent ef3486eac0
commit 857505124f
8 changed files with 363 additions and 38 deletions

View File

@@ -23,6 +23,8 @@ fastapi = "^0.100.1"
sentry-sdk = {extras = ["fastapi"], version = "^1.29.2"}
httpx = "^0.24.1"
fastapi-pagination = "^0.12.6"
databases = {extras = ["aiosqlite", "asyncpg"], version = "^0.7.0"}
sqlalchemy = "<1.5"
[tool.poetry.group.dev.dependencies]