Docs wordsmith for execute_values() fetch param

This commit is contained in:
Daniele Varrazzo 2018-12-27 14:40:08 +01:00
parent 6fdac46137
commit bde9fc6dea
2 changed files with 4 additions and 3 deletions

View File

@ -1024,7 +1024,7 @@ parameters. By reducing the number of server roundtrips the performance can be
.. versionadded:: 2.7
.. versionchanged:: 2.8
added the *fetch* parameter
added the *fetch* parameter.
.. index::

View File

@ -1229,8 +1229,9 @@ def execute_values(cur, sql, argslist, template=None, page_size=100, fetch=False
statement. If there are more items the function will execute more than
one statement.
:param fetch: flag indicating that results of query execution should
be returned. Useful for queries with `RETURNING` clause
:param fetch: if `!True` return the query results into a list (like in a
`~cursor.fetchall()`). Useful for queries with :sql:`RETURNING`
clause.
.. __: https://www.postgresql.org/docs/current/static/queries-values.html