]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add an identity_token to the identity key
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Dec 2017 15:20:50 +0000 (10:20 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 22 Dec 2017 16:36:53 +0000 (11:36 -0500)
commit50d9f1687a6e0c3ce9b62fe98b76b25af7b20c11
treefec4931bac89e4706b45aa3ffdc82db30cfc9425
parent04937652f426e518781b2b762b0e0e8090857cbd
Add an identity_token to the identity key

For the purposes of assisting with sharded setups, add a new
member to the identity key that can be customized.  this allows
sharding across databases where the primary key space is shared.

Change-Id: Iae3909f5d4c501b62c10d0371fbceb01abda51db
Fixes: #4137
15 files changed:
doc/build/changelog/migration_12.rst
doc/build/changelog/unreleased_12/4137.rst [new file with mode: 0644]
examples/sharding/attribute_shard.py
lib/sqlalchemy/ext/horizontal_shard.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/state.py
lib/sqlalchemy/orm/util.py
test/ext/test_horizontal_shard.py
test/orm/test_inspect.py
test/orm/test_pickled.py
test/orm/test_transaction.py
test/orm/test_utils.py