]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- fixes to ShardedSession to work with deferred columns [ticket:771].
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 8 Sep 2007 19:51:35 +0000 (19:51 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 8 Sep 2007 19:51:35 +0000 (19:51 +0000)
commitfc753a06475c2fa571d09d73d3169b66c272c8d6
tree718820e31a95eadc332277eed905d21ba09a6edf
parentbf35590e15de3fac7977757d89bc994400f26125
- fixes to ShardedSession to work with deferred columns [ticket:771].

- user-defined shard_chooser() function must accept "clause=None"
  argument; this is the ClauseElement passed to session.execute(statement)
  and can be used to determine correct shard id (since execute() doesn't
  take an instance)
CHANGES
examples/sharding/attribute_shard.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/shard.py
lib/sqlalchemy/orm/strategies.py
test/orm/sharding/shard.py