mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 15:45:46 +03:00
Docs wordsmith for execute_values() fetch param
This commit is contained in:
parent
6fdac46137
commit
bde9fc6dea
|
@ -1024,7 +1024,7 @@ parameters. By reducing the number of server roundtrips the performance can be
|
||||||
|
|
||||||
.. versionadded:: 2.7
|
.. versionadded:: 2.7
|
||||||
.. versionchanged:: 2.8
|
.. versionchanged:: 2.8
|
||||||
added the *fetch* parameter
|
added the *fetch* parameter.
|
||||||
|
|
||||||
|
|
||||||
.. index::
|
.. index::
|
||||||
|
|
|
@ -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
|
statement. If there are more items the function will execute more than
|
||||||
one statement.
|
one statement.
|
||||||
|
|
||||||
:param fetch: flag indicating that results of query execution should
|
:param fetch: if `!True` return the query results into a list (like in a
|
||||||
be returned. Useful for queries with `RETURNING` clause
|
`~cursor.fetchall()`). Useful for queries with :sql:`RETURNING`
|
||||||
|
clause.
|
||||||
|
|
||||||
.. __: https://www.postgresql.org/docs/current/static/queries-values.html
|
.. __: https://www.postgresql.org/docs/current/static/queries-values.html
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user