Soem crudkit fixes aimed at eliminating session sharing.

This commit is contained in:
Yaro Kasear 2025-09-15 11:51:56 -05:00
parent d045a1a05f
commit cf795086f1
10 changed files with 107 additions and 47 deletions

View file

@ -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 {}),