]> 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:48 +0000 (14:02 -0500)
commit05384c1d059005124744b93784746923b29f69ca
tree0f8546cece5dd34da1f0d2239c116214bf4306aa
parent651d52804749b1afabc64edc668b8d86ce19c74b
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]