diff --git a/dataset/persistence/database.py b/dataset/persistence/database.py index 745063f..36b45c2 100644 --- a/dataset/persistence/database.py +++ b/dataset/persistence/database.py @@ -254,8 +254,9 @@ class Database(object): a plain text string, or a `SQLAlchemy expression `_. 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 `_ for details. :: res = db.query('SELECT user, COUNT(*) c FROM photos GROUP BY user')