]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added has(), like any() but for scalars
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jul 2007 22:00:19 +0000 (22:00 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 Jul 2007 22:00:19 +0000 (22:00 +0000)
commit2da4d1179265ed83e69b927ec75dbfeb3ad6d802
treea955f73cecc0b5b5424b17c37bda99e1cca7ff61
parent851524aa59240fd60051ea1e47d30f9afaa120f9
- added has(), like any() but for scalars
- added **kwargs to has() and any(), criterion is optional; generate equality criterion
against the related table (since we know the related property when has() and any() are used),
i.e. filter(Address.user.has(name='jack')) equivalent to filter(Address.user.has(User.name=='jack'))
- added "from_joinpoint=False" arg to join()/outerjoin().  yes, I know join() is getting a little
crazy, but this flag is needed when you want to keep building along a line of aliased joins,
adding query criterion for each alias in the chain.  self-referential unit test added.
- fixed basic_tree example a little bit
examples/adjacencytree/basic_tree.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql.py
test/orm/query.py