fix(deps): upgrade to sqlalchemy version 2

Bump sqlalchemy to version 2.0.22

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 <moson@archlinux.org>
This commit is contained in:
moson 2023-11-30 14:43:22 +01:00
parent fa5dd2ca2c
commit d7ecede2eb
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
14 changed files with 157 additions and 115 deletions

View file

@ -82,7 +82,7 @@ Authlib = "^1.2.1"
Jinja2 = "^3.1.2"
Markdown = "^3.5.1"
Werkzeug = "^3.0.1"
SQLAlchemy = "^1.4.50"
SQLAlchemy = "^2.0.23"
# ASGI
uvicorn = "^0.24.0"