]> 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:29 +0000 (13:19 -0500)
commite48bcb599b107ce674d503df728e1f6f7b3603dc
tree10a0b7c5e9ee3dd01a4b6e82b7aae50324ae2d9e
parent1561787f417eadd1728aca1d07f76c025288491e
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
(cherry picked from commit 48b37a062a26a41bd5c9243d2365a6c06a77a347)
examples/versioned_history/__init__.py
examples/versioned_history/history_meta.py
examples/versioned_history/test_versioning.py