mirror of
https://github.com/PaiGramTeam/sqlmodel.git
synced 2024-11-29 10:36:33 +00:00
✨ Add new Session.get() parameter execution_options (#302)
This commit is contained in:
parent
8e97c93de0
commit
03e861d048
@ -128,6 +128,7 @@ class Session(_Session):
|
|||||||
populate_existing: bool = False,
|
populate_existing: bool = False,
|
||||||
with_for_update: Optional[Union[Literal[True], Mapping[str, Any]]] = None,
|
with_for_update: Optional[Union[Literal[True], Mapping[str, Any]]] = None,
|
||||||
identity_token: Optional[Any] = None,
|
identity_token: Optional[Any] = None,
|
||||||
|
execution_options: Optional[Mapping[Any, Any]] = util.EMPTY_DICT,
|
||||||
) -> Optional[_TSelectParam]:
|
) -> Optional[_TSelectParam]:
|
||||||
return super().get(
|
return super().get(
|
||||||
entity,
|
entity,
|
||||||
@ -136,4 +137,5 @@ class Session(_Session):
|
|||||||
populate_existing=populate_existing,
|
populate_existing=populate_existing,
|
||||||
with_for_update=with_for_update,
|
with_for_update=with_for_update,
|
||||||
identity_token=identity_token,
|
identity_token=identity_token,
|
||||||
|
execution_options=execution_options,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user