summaryrefslogtreecommitdiff
path: root/examples/sharding
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2007-08-10 21:18:01 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2007-08-10 21:18:01 +0000
commitb01c63280e16cd549601fb91393acbff3695821a (patch)
treee591a73b18dc28f416dd58b50780574374382404 /examples/sharding
parent21a0af61de458dd76c0f7fe41e7b4fb8d1e861f5 (diff)
downloadsqlalchemy-b01c63280e16cd549601fb91393acbff3695821a.tar.gz
#725 add query arg to id_chooser()
Diffstat (limited to 'examples/sharding')
-rw-r--r--examples/sharding/attribute_shard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sharding/attribute_shard.py b/examples/sharding/attribute_shard.py
index 6e4732989..df3f7467f 100644
--- a/examples/sharding/attribute_shard.py
+++ b/examples/sharding/attribute_shard.py
@@ -118,7 +118,7 @@ def shard_chooser(mapper, instance):
# pk so we just return all shard ids. often, youd want to do some
# kind of round-robin strategy here so that requests are evenly
# distributed among DBs
-def id_chooser(ident):
+def id_chooser(query, ident):
return ['north_america', 'asia', 'europe', 'south_america']
# query_chooser. this also returns a list of shard ids, which can