Commit graph

4 commits

Author SHA1 Message Date
4981de4a04 remove databases, use SQLAlechemy 2.0 instead
Among the many changes we switch to using SQLAlchemy's connection pool,
which means we are no longer required to guard against multiple threads
working on the database.
All db funcs now receive a connection to use as their first argument,
this allows the caller to control transaction & rollback behavior.
2023-11-27 23:24:35 +01:00
1f42538481 make the shared connection internal to the db module
This should make it easier to refactor the code for removing the
databases package.
2023-11-26 18:41:32 +01:00
324eb8e9b7 fix tests for Pytest-Asyncio running in strict mode 2023-02-04 18:12:50 +01:00
e1f35143df add some tests for db.find_ratings 2021-12-19 19:30:08 +01:00