receive an object instance after it was the subject of a merge() call, when load=False was passed. The target would be the already-loaded object in the Session which would have had its attributes overwritten by the incoming object. This overwrite operation does not u
(
self, target: _O, context: QueryContext
)
| 401 | """ |
| 402 | |
| 403 | def _sa_event_merge_wo_load( |
| 404 | self, target: _O, context: QueryContext |
| 405 | ) -> None: |
| 406 | """receive an object instance after it was the subject of a merge() |
| 407 | call, when load=False was passed. |
| 408 | |
| 409 | The target would be the already-loaded object in the Session which |
| 410 | would have had its attributes overwritten by the incoming object. This |
| 411 | overwrite operation does not use attribute events, instead just |
| 412 | populating dict directly. Therefore the purpose of this event is so |
| 413 | that extensions like sqlalchemy.ext.mutable know that object state has |
| 414 | changed and incoming state needs to be set up for "parents" etc. |
| 415 | |
| 416 | This functionality is acceptable to be made public in a later release. |
| 417 | |
| 418 | .. versionadded:: 1.4.41 |
| 419 | |
| 420 | """ |
| 421 | |
| 422 | def load(self, target: _O, context: QueryContext) -> None: |
| 423 | """Receive an object instance after it has been created via |