MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / versioned_update_old_row.py

File versioned_update_old_row.py

examples/versioned_rows/versioned_update_old_row.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Illustrates the same UPDATE into INSERT technique of ``versioned_rows.py``,
2but also emits an UPDATE on the **old** row to affect a change in timestamp.
3Also includes a :meth:`.SessionEvents.do_orm_execute` hook to limit queries
4to only the most recent version.

Callers

nothing calls this directly

Calls 15

declarative_baseFunction · 0.90
create_engineFunction · 0.90
SessionClass · 0.90
time_passesFunction · 0.85
create_allMethod · 0.80
ChildClass · 0.70
ParentClass · 0.70
addMethod · 0.45
commitMethod · 0.45
allMethod · 0.45
queryMethod · 0.45
firstMethod · 0.45

Tested by

no test coverage detected