Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
✨ Add new Session.get() parameter execution_options
  • Loading branch information
tiangolo committed Apr 16, 2022
commit b346aacfeeb53d74db9d2c1e689adb4bc619e613
2 changes: 2 additions & 0 deletions sqlmodel/orm/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def get(
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,
Expand All @@ -136,4 +137,5 @@ def get(
populate_existing=populate_existing,
with_for_update=with_for_update,
identity_token=identity_token,
execution_options=execution_options,
)