mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 03:33:55 +02:00
Add sql lite session (#71)
I added an sql lite session generator. Changes The function `def get_session() -> Session` has changed to `def get_session(connect_to: ConfigProvider | str) -> Session` If a JsonFileConfig Is given the postgress conection is checked. If a string is given that starts with `sqlite:///` an sql db is created. The use should otherwise be the same.
This commit is contained in:
4
tests/utils/sql/entities_test.py
Normal file
4
tests/utils/sql/entities_test.py
Normal file
@ -0,0 +1,4 @@
|
||||
def test_import() -> None:
|
||||
from aki_prj23_transparenzregister.utils.sql import entities
|
||||
|
||||
assert entities
|
Reference in New Issue
Block a user