better comment

This commit is contained in:
Friedrich Lindenberg 2015-01-18 10:53:52 +01:00
parent 0c53587d34
commit 18bd02419a

View File

@ -254,8 +254,9 @@ class Database(object):
a plain text string, or a `SQLAlchemy expression <http://docs.sqlalchemy.org/en/latest/core/tutorial.html#selecting>`_. The returned
iterator will yield each result sequentially.
Any keyword arguments will be passed into the query to perform
parameter binding.
If a SQLAlchemy expression is passed into the function, keyword
arguments will be used for parameter binding. See the `SQLAlchemy
documentation <http://docs.sqlalchemy.org/en/rel_0_9/core/connections.html#sqlalchemy.engine.Connection.execute>`_ for details.
::
res = db.query('SELECT user, COUNT(*) c FROM photos GROUP BY user')