]> git.ipfire.org Git - thirdparty/fastapi/sqlmodel.git/commitdiff
✨ Add new Session.get() parameter execution_options (#302)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 16 Apr 2022 09:13:19 +0000 (11:13 +0200)
committerGitHub <noreply@github.com>
Sat, 16 Apr 2022 09:13:19 +0000 (11:13 +0200)
sqlmodel/orm/session.py

index 453e0eefafab3a1cc1e4931e381b2c9d74cd371a..1692fdcbcbca1003b7df52b20a44475714be7616 100644 (file)
@@ -128,6 +128,7 @@ class Session(_Session):
         populate_existing: bool = False,
         with_for_update: Optional[Union[Literal[True], Mapping[str, Any]]] = None,
         identity_token: Optional[Any] = None,
+        execution_options: Optional[Mapping[Any, Any]] = util.EMPTY_DICT,
     ) -> Optional[_TSelectParam]:
         return super().get(
             entity,
@@ -136,4 +137,5 @@ class Session(_Session):
             populate_existing=populate_existing,
             with_for_update=with_for_update,
             identity_token=identity_token,
+            execution_options=execution_options,
         )