fix(deps): upgrade to sqlalchemy version 2

Bump sqlalchemy to version 2.0.17

There are quite some changes that happened with v2.
We are currently relying on the "auto-commit" feature which was removed.
For the moment we can use a wrapper class to mimic the auto-commit
behavior allowing us to move to v2.

Ultimately, the (db) session management needs some overhaul though.

Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
moson-mo 2023-06-30 11:05:18 +02:00 committed by moson
parent 9eda6a42c6
commit ec090d7b30
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
12 changed files with 112 additions and 170 deletions

View file

@ -83,7 +83,7 @@ Authlib = "^1.2.0"
Jinja2 = "^3.1.2"
Markdown = "^3.4.3"
Werkzeug = "^2.3.3"
SQLAlchemy = "^1.4.48"
SQLAlchemy = "2.0.17"
# ASGI
uvicorn = "^0.23.0"