query.statement returns the full SELECT construct,
query.whereclause returns just the WHERE part of the
SELECT construct.
- query.order_by() and query.group_by() will accept multiple
arguments using *args (like select() already does).
+ - Added some convenience descriptors to Query:
+ query.statement returns the full SELECT construct,
+ query.whereclause returns just the WHERE part of the
+ SELECT construct.
+
- Fixed/covered case when using a False/0 value as a
polymorphic discriminator.
return self._session
session = property(session)
+ def statement(self):
+ """return the full SELECT statement represented by this Query."""
+ return self._compile_context().statement
+ statement = property(statement)
+
+ def whereclause(self):
+ """return the WHERE criterion for this Query."""
+ return self._criterion
+ whereclause = property(whereclause)
+
def _with_current_path(self, path):
q = self._clone()
q._current_path = path