mirror of
				https://github.com/fastapi/sqlmodel.git
				synced 2025-11-04 06:37:29 +08:00 
			
		
		
		
	✨ Add new Session.get() parameter execution_options (#302)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						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,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user