summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/assignmapper.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-07-13 16:36:31 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-07-13 16:36:31 +0000
commit70469bf26092095590aa441f41f5bcde11968ffc (patch)
treed9602091007435bd4101e2fc13a2dd5704c2732f /lib/sqlalchemy/ext/assignmapper.py
parent2cb2b624f97a88df857777104cc0db6d733306ef (diff)
downloadsqlalchemy-70469bf26092095590aa441f41f5bcde11968ffc.tar.gz
added count/count_by to assignmapper, plus a test in activemapper to try it out
Diffstat (limited to 'lib/sqlalchemy/ext/assignmapper.py')
-rw-r--r--lib/sqlalchemy/ext/assignmapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/assignmapper.py b/lib/sqlalchemy/ext/assignmapper.py
index 29cc70b3e..240a46e3b 100644
--- a/lib/sqlalchemy/ext/assignmapper.py
+++ b/lib/sqlalchemy/ext/assignmapper.py
@@ -31,7 +31,7 @@ def assign_mapper(ctx, class_, *args, **kwargs):
extension = ctx.mapper_extension
m = mapper(class_, extension=extension, *args, **kwargs)
class_.mapper = m
- for name in ['get', 'select', 'select_by', 'selectone', 'get_by', 'join_to', 'join_via']:
+ for name in ['get', 'select', 'select_by', 'selectone', 'get_by', 'join_to', 'join_via', 'count', 'count_by']:
monkeypatch_query_method(ctx, class_, name)
for name in ['flush', 'delete', 'expire', 'refresh', 'expunge', 'merge', 'save', 'update', 'save_or_update']:
monkeypatch_objectstore_method(ctx, class_, name)