mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 00:12:35 +02:00
Fixing the sqllite threadpool (#544)
This commit is contained in:
commit
9a6259d732
@ -35,7 +35,7 @@ def get_engine(conn_args: SQLConnectionString) -> Engine:
|
|||||||
if isinstance(conn_args, SQLiteConnectionString):
|
if isinstance(conn_args, SQLiteConnectionString):
|
||||||
return sa.create_engine(
|
return sa.create_engine(
|
||||||
str(conn_args),
|
str(conn_args),
|
||||||
connect_args={"check_same_thread": True},
|
connect_args={"check_same_thread": False},
|
||||||
poolclass=SingletonThreadPool,
|
poolclass=SingletonThreadPool,
|
||||||
)
|
)
|
||||||
raise TypeError("The type of the configuration is invalid.")
|
raise TypeError("The type of the configuration is invalid.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user