]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- added optional constructor to sql.ColumnCollection
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 Jan 2007 21:54:16 +0000 (21:54 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 15 Jan 2007 21:54:16 +0000 (21:54 +0000)
commitca92a81191a8ac4627e16838c8f6c1a8300291dc
tree509bdb2ceecabf3514d66413c8b35069734cb955
parentf7a8589994c434c07002809a896c1e4a166f0642
- added optional constructor to sql.ColumnCollection
- mapper sets its "primary_key" attribute to be the ultimately decided primary_key column collection post-compilation
- added compare() method to MapperProperty, defines a comparison operation of the columns represented by the property to some value
- all the above combines into today's controversial feature: saying query.select_by(somerelationname=someinstance) will create the join of the primary key columns represented by "somerelationname"'s mapper to the actual primary key in "someinstance".
- docs for the above
CHANGES
doc/build/content/datamapping.txt
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql.py
test/orm/mapper.py