Fixing the sqllite threadpool (#544)

This commit is contained in:
Philipp Horstenkamp 2024-01-10 20:04:31 +01:00 committed by GitHub
commit 9a6259d732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.")