summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/selectresults.py
Commit message (Collapse)AuthorAgeFilesLines
* r4695 merged to trunk; trunk now becomes 0.5.Mike Bayer2008-05-091-28/+0
| | | | 0.4 development continues at /sqlalchemy/branches/rel_0_4
* Added EXT_CONTINUE and EXT_STOP for MapperExtensions; EXT_PASS is a synonym ↵Jason Kirtland2007-08-011-1/+1
| | | | | | for EXT_CONTINUE. Repointed docs and examples to EXT_CONTINUE
* merging 0.4 branch to trunk. see CHANGES for details. 0.3 moves to ↵Mike Bayer2007-07-271-201/+17
| | | | maintenance branch in branches/rel_0_3.
* - small fix to SelectResultsExt to not bypass itself duringMike Bayer2007-04-301-1/+1
| | | | select().
* integrated docutils formatting into generated documentation;Mike Bayer2007-03-171-4/+5
| | | | restructuredtext fixes throughout docstrings
* - options() method on SelectResults now implemented "generatively"Mike Bayer2007-03-071-2/+4
| | | | like the rest of the SelectResults methods [ticket:472]
* migrated (most) docstrings to pep-257 format, docstring generator using ↵Mike Bayer2007-02-251-52/+78
| | | | | | straight <pre> + trim() func for now. applies most of [ticket:214], compliemnts of Lele Gaifax
* - added options() method to SelectResults, equivalent to query.options() ↵Mike Bayer2007-02-101-0/+8
| | | | [ticket:472]
* - added distinct() method to SelectResults. generally should only make a ↵Mike Bayer2007-02-051-0/+6
| | | | | | difference when using count().
* - the "polymorphic_primaryjoin" again goes against the parent's ↵Mike Bayer2007-02-011-2/+2
| | | | | | | | | | non-polymorphic local table. lazy load clause evaluation is plenty solid enough to handle it this time. - the join_to() method on PropertyLoader takes the parent mapper as an argument and alisiazes the primaryjoin against that mapper's selectable, so that the same primary join can be used against the base mapper, any inheriting mapper, etc., whether or not it uses a polymorphic union (although needs to be tested against alternate polymorphic unions added on subclasses). fixes [ticket:448]
* removed various print statementsMike Bayer2007-01-281-3/+0
|
* merged the polymorphic relationship refactoring branch in. i want to go ↵Mike Bayer2007-01-281-3/+9
| | | | | | | | | | | | | further on that branch and introduce the foreign_keys argument, and further centralize the "intelligence" about the joins and selectables into PropertyLoader so that lazyloader/sync can be simplified, but the current branch goes pretty far. - relations keep track of "polymorphic_primaryjoin", "polymorphic_secondaryjoin" which it derives from the plain primaryjoin/secondaryjoin. - lazy/eagerloaders work from those polymorphic join objects. - the join exported by PropertyLoader to Query/SelectResults is the polymorphic join, so that join_to/etc work properly. - Query builds itself against the base Mapper again, not the "polymorphic" mapper. uses the "polymorphic" version only as appropriate. this helps join_by/join_to/etc to work with polymorphic mappers. - Query will also adapt incoming WHERE criterion to the polymorphic mapper, i.e. the "people" table becomes the "person_join" automatically. - quoting has been modified since labels made out of non-case-sensitive columns could themselves require quoting..so case_sensitive defaults to True if not otherwise specified (used to be based on the identifier itself). - the test harness gets an ORMTest base class and a bunch of the ORM unit tests are using it now, decreases a lot of redundancy.
* - merged loader_strategies branch into trunk.Mike Bayer2006-10-031-1/+1
| | | | | | | | | | | - this is a wide refactoring to "attribute loader" and "options" architectures. ColumnProperty and PropertyLoader define their loading behaivor via switchable "strategies", and MapperOptions no longer use mapper/property copying in order to function; they are instead propigated via QueryContext and SelectionContext objects at query/instnaces time. All of the copying of mappers and properties that was used to handle inheritance as well as options() has been removed and the structure of mappers and properties is much simpler and more clearly laid out.
* - specifying joins in the from_obj argument of query.select() willMike Bayer2006-09-271-6/+60
| | | | | | | | | | | | | replace the main table of the query, if the table is somewhere within the given from_obj. this makes it possible to produce custom joins and outerjoins in queries without the main table getting added twice. [ticket:315] - added join_to and outerjoin_to transformative methods to SelectResults, to build up join/outerjoin conditions based on property names. also added select_from to explicitly set from_obj parameter. - factored "results" arrays from the mapper test suite and into the "tables" mapper - added "viewonly" param to docs
* - fix to using query.count() with distinct, **kwargs with SelectResultsMike Bayer2006-08-271-1/+1
| | | | count() [ticket:287]
* SelectResults will use a subselect, when calling an aggregate (i.e.Mike Bayer2006-08-111-5/+17
| | | | | max, min, etc.) on a SelectResults that has an ORDER BY clause [ticket:252]
* _selectable interface; allows sqlsoup to pass its classes to Join and have ↵Jonathan Ellis2006-07-211-1/+1
| | | | the underlying Table pulled out
* fixed [ticket:200]Mike Bayer2006-06-071-1/+0
|
* selectresults docsMike Bayer2006-05-281-1/+20
|
* merged 0.2 branch into trunk; 0.1 now in sqlalchemy/branches/rel_0_1Mike Bayer2006-05-251-0/+82