Fixing the local sqlite connection.

This commit is contained in:
Philipp Horstenkamp 2024-01-08 20:55:42 +01:00
parent 894c140ba1
commit a2497d8ae6
Signed by: Philipp
GPG Key ID: DD53EAC36AFB61B4

View File

@ -35,7 +35,7 @@ def get_engine(conn_args: SQLConnectionString) -> Engine:
if isinstance(conn_args, SQLiteConnectionString):
return sa.create_engine(
str(conn_args),
connect_args={"check_same_thread": True},
connect_args={"check_same_thread": False},
poolclass=SingletonThreadPool,
)
raise TypeError("The type of the configuration is invalid.")