From: Sebastián Ramírez Date: Sat, 16 Apr 2022 09:13:19 +0000 (+0200) Subject: ✨ Add new Session.get() parameter execution_options (#302) X-Git-Tag: 0.0.7~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03e861d048f04e91c5526547ced7e6de5f8ccf64;p=thirdparty%2Ffastapi%2Fsqlmodel.git ✨ Add new Session.get() parameter execution_options (#302) --- diff --git a/sqlmodel/orm/session.py b/sqlmodel/orm/session.py index 453e0eef..1692fdcb 100644 --- a/sqlmodel/orm/session.py +++ b/sqlmodel/orm/session.py @@ -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, )