]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Integrate mapper-level version_id_col with versioned_history
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Jan 2020 18:16:43 +0000 (13:16 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 10 Jan 2020 18:19:05 +0000 (13:19 -0500)
commit48b37a062a26a41bd5c9243d2365a6c06a77a347
tree462255fb86475ee65690147063f52ce38963b47f
parent4b17d0306421cab9821125fb774d1ff89b36e77e
Integrate mapper-level version_id_col with versioned_history

as the versioned_history example supplies an integer version
counter for the purposes of generating an audit trail, this
counter is also suited to be used for optimistic concurrency
detection using the version_id_col feature.   Build upon
the test that was first added in ac54ba0f2d8df5a76b6852841b6b3321c0e6c0e2
to provide a flag and some basic documentation.

Fixes: #2861
Change-Id: I50236beae4c49b33ada8fdcc4c524273b4e21c75
examples/versioned_history/__init__.py
examples/versioned_history/history_meta.py
examples/versioned_history/test_versioning.py