Skip to content

Commit 03e861d

Browse files
authored
✨ Add new Session.get() parameter execution_options (#302)
1 parent 8e97c93 commit 03e861d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sqlmodel/orm/session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ def get(
128128
populate_existing: bool = False,
129129
with_for_update: Optional[Union[Literal[True], Mapping[str, Any]]] = None,
130130
identity_token: Optional[Any] = None,
131+
execution_options: Optional[Mapping[Any, Any]] = util.EMPTY_DICT,
131132
) -> Optional[_TSelectParam]:
132133
return super().get(
133134
entity,
@@ -136,4 +137,5 @@ def get(
136137
populate_existing=populate_existing,
137138
with_for_update=with_for_update,
138139
identity_token=identity_token,
140+
execution_options=execution_options,
139141
)

0 commit comments

Comments
 (0)