]> 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:37 +0000 (14:02 -0500)
commit5f7814707df9e319d00257d89f72886f9eda9d52
tree3521ed105f4972bf5be8032c59b654f6d895868a
parent7907c178580d6ce70c024c2c9fa7c72b70d9b2b9
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]