]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
add pydoc for from_statement().
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2007 17:50:24 +0000 (17:50 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 9 Dec 2007 17:50:24 +0000 (17:50 +0000)
lib/sqlalchemy/orm/query.py

index 20f18eecbc8510f8a1561eef622f53b2407613e7..89733d5e53c5f9a4d535dd487f57d7f3e8298ef5 100644 (file)
@@ -623,6 +623,19 @@ class Query(object):
         
     
     def from_statement(self, statement):
+        """Execute the given SELECT statement and return results.
+        
+        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``.
+        
+        Also see the ``instances()`` method.
+        
+        """
+        
         if isinstance(statement, basestring):
             statement = sql.text(statement)
         q = self._clone()