]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add versioned_update_old_row example
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Dec 2018 19:01:23 +0000 (14:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 7 Dec 2018 19:02:26 +0000 (14:02 -0500)
commit04bc04240217462b8c548de37c9cff21fc4b1b44
tree0b620160b4071902262ab8cda2714f2284fb9579
parentd4108fa875f39056d348328b386533d19d14e6a5
Add versioned_update_old_row example

A modification to the "turn UPDATE into INSERT" recipe that
also UPDATEs the previous row.  The example is using timestamps
to maintain a relationship between two objects.

Change-Id: Ifdb8ee73616190384263bbe88c71d9278d616f6b
(cherry picked from commit 5851bf113821af6ce2e61484f103a44f4fabe430)
examples/versioned_rows/versioned_update_old_row.py [new file with mode: 0644]