SQLAlchemy 0.3 Documentation
module sqlalchemy.ext.selectresults
class SelectResults(object)
Build a query one component at a time via separate method calls, each call transforming the previous SelectResults instance into a new SelectResults instance with further limiting criterion added. When interpreted in an iterator context (such as via calling list(selectresults)), executes the query.
Construct a new SelectResults using the given Query object and optional WHERE clause. ops is an optional dictionary of bind parameter values.
Join the table of this SelectResults to the table located against the given property name.
Subsequent calls to join_to or outerjoin_to will join against the rightmost table located from the previous join_to or outerjoin_to call, searching for the property starting with the rightmost mapper last located.
Return the results represented by this SelectResults as a list.
This results in an execution of the underlying query.
Apply mapper options to the underlying query.
See also Query.options.
Outer join the table of this SelectResults to the table located against the given property name.
Subsequent calls to join_to or outerjoin_to will join against the rightmost table located from the previous join_to or outerjoin_to call, searching for the property starting with the rightmost mapper last located.
Set the from_obj parameter of the query.
from_obj is a list of one or more tables.
class SelectResultsExt(MapperExtension)
a MapperExtension that provides SelectResults functionality for the results of query.select_by() and query.select()