]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Query has add_entity() and add_column() generative methods. these
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Mar 2007 03:41:55 +0000 (03:41 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 10 Mar 2007 03:41:55 +0000 (03:41 +0000)
commitdc2d085a75edf382fadcf40e100542b74a78686a
treef1942be6775ac137b8cda029fe14a2d0dca0c3de
parentb2e04755cc5f382596fb174c7381f60dd2972d94
- Query has add_entity() and add_column() generative methods.  these
will add the given mapper/class or ColumnElement to the query at compile
time, and apply them to the instances method.  the user is responsible
for constructing reasonable join conditions (otherwise you can get
full cartesian products).  result set is the list of tuples, non-uniqued.
- fixed multi-mapper instances() to pad out shorter results with None so
zip() gets everything
CHANGES
examples/association/proxied_association.py
lib/sqlalchemy/orm/query.py
test/orm/mapper.py