MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _organize_states_for_post_update

Function _organize_states_for_post_update

lib/sqlalchemy/orm/persistence.py:290–299  ·  view source on GitHub ↗

Make an initial pass across a set of states for UPDATE corresponding to post_update. This includes obtaining key information for each state including its dictionary, mapper, the connection to use for the execution per state.

(base_mapper, states, uowtransaction)

Source from the content-addressed store, hash-verified

288
289
290def _organize_states_for_post_update(base_mapper, states, uowtransaction):
291 """Make an initial pass across a set of states for UPDATE
292 corresponding to post_update.
293
294 This includes obtaining key information for each state
295 including its dictionary, mapper, the connection to use for
296 the execution per state.
297
298 """
299 return _connections_for_states(base_mapper, uowtransaction, states)
300
301
302def _organize_states_for_delete(base_mapper, states, uowtransaction):

Callers 1

_post_updateFunction · 0.85

Calls 1

_connections_for_statesFunction · 0.85

Tested by

no test coverage detected