]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add baked.Result.with_post_criteria method
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Nov 2017 23:44:41 +0000 (18:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 12 Nov 2017 23:44:41 +0000 (18:44 -0500)
commit3937fc7dfc0f000505ff181ebb8e6b432f116231
tree1dce9e899aac5e7d9f4a142232178e7eaa4728f0
parent6448903b5287801aaefbf82b5fa108403d743e8f
Add baked.Result.with_post_criteria method

Added new method :meth:`.baked.Result.with_post_criteria` to baked
query system, allowing non-SQL-modifying transformations to take place
after the query has been pulled from the cache.  Among other things,
this method can be used with :class:`.horizontal_shard.ShardedQuery`
to set the shard identifier.   :class:`.horizontal_shard.ShardedQuery`
has also been modified such that its :meth:`.ShardedQuery.get` method
interacts correctly with that of :class:`.baked.Result`.

Change-Id: I04630c683240abbb4b99f0510a1a3dcb564815b4
Fixes: #4135
doc/build/changelog/unreleased_12/4135.rst [new file with mode: 0644]
lib/sqlalchemy/ext/baked.py
lib/sqlalchemy/ext/horizontal_shard.py
test/ext/test_baked.py
test/ext/test_horizontal_shard.py