From: Mike Bayer Date: Sun, 31 Aug 2014 22:05:17 +0000 (-0400) Subject: - improve from_statement() doc X-Git-Tag: rel_0_9_8~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b3e3d915597b372d707f5e3f312633c57e57cec;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - improve from_statement() doc --- diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index af0b72091a..a9ed4d4e71 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -2326,9 +2326,15 @@ class Query(object): This method bypasses all internal statement compilation, and the statement is executed without modification. - The statement argument is either a string, a ``select()`` construct, - or a ``text()`` construct, and should return the set of columns - appropriate to the entity class represented by this ``Query``. + The statement is typically either a :func:`~.expression.text` + or :func:`~.expression.select` construct, and should return the set + of columns + appropriate to the entity class represented by this :class:`.Query`. + + .. seealso:: + + :ref:`orm_tutorial_literal_sql` - usage examples in the + ORM tutorial """ if isinstance(statement, util.string_types):