]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added operator support to class-instrumented attributes. you can now
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Jul 2007 04:25:09 +0000 (04:25 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 17 Jul 2007 04:25:09 +0000 (04:25 +0000)
commitbd3816a1fd8ae4e0dfbbca3f148dd1e65f48f5c7
tree56905128f83688b07b2b47893e196ce0a28fa2e5
parent9ff169028d74c65350d41030d89119ab06c8ac49
- added operator support to class-instrumented attributes. you can now
filter() (or whatever) using <classname>.<attributename>==<whatever>.
for column based properties, all column operators work (i.e. ==, <, >,
like(), in_(), etc.).  For relation() and composite column properties,
==<instance>, !=<instance>, and ==<None> are implemented so far.
[ticket:643]
CHANGES
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/mapper.py
test/orm/query.py