mapper.dispatch.before_delete(mapper, connection, state)
- yield state, dict_, mapper, bool(state.key), connection
+ if mapper.version_id_col is not None:
+ update_version_id = \
+ mapper._get_committed_state_attr_by_column(
+ state, dict_,
+ mapper.version_id_col)
+ else:
+ update_version_id = None
+
+ yield (
+ state, dict_, mapper, connection, update_version_id)
-def _collect_insert_commands(table, states_to_insert):
+def _collect_insert_commands(table, states_to_insert, bulk=False):
"""Identify sets of values to use in INSERT statements for a
list of states.