Soem crudkit fixes aimed at eliminating session sharing.
This commit is contained in:
parent
d045a1a05f
commit
cf795086f1
10 changed files with 107 additions and 47 deletions
|
|
@ -71,10 +71,10 @@ class CRUDRegistry:
|
|||
SessionMaker = self._rt.session_factory
|
||||
if SessionMaker is None:
|
||||
raise RuntimeError("CRUDKitRuntime.session_factory is not initialized.")
|
||||
session: Session = SessionMaker()
|
||||
|
||||
svc = CRUDService(
|
||||
model,
|
||||
session=session,
|
||||
session_factory=SessionMaker,
|
||||
polymorphic=polymorphic,
|
||||
backend=self._rt.backend,
|
||||
**(service_kwargs or {}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue