From 0043526e356baab7e86043eaa08d9766de3e6440 Mon Sep 17 00:00:00 2001 From: Yuval Dinari <> Date: Thu, 18 Jul 2019 13:11:33 +0300 Subject: [PATCH] Fix documentation --- lib/sqlalchemy/dialects/postgresql/psycopg2.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg2.py b/lib/sqlalchemy/dialects/postgresql/psycopg2.py index b0f92d032f..4c165fd9dc 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg2.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg2.py @@ -62,19 +62,17 @@ psycopg2-specific keyword arguments which are accepted by * ``None``: Flag not used, ``use_batch_mode`` determines behavior. * ``'single_statement'``: - Every parameters set is a single query that is sent to the database. - Uses ``psycopg2.extras.execute`` or ``psycopg2.extras.executemany``. - Equivalent to ``use_batch_mode=False``. + A single query is created for every parameters set and sent to the database. + Uses ``psycopg2.extras.executemany``. Equivalent to ``use_batch_mode=False``. * ``'statements_batch'``: Multiple queries are sent together to the database. Uses ``psycopg2.extras.execute_batch``. Equivalent to ``use_batch_mode=True``. * ``'values_batch'``: Multiple parameters sets are packed together into a single query - that is sent to the database. This flag currently supports only insert queries, + that is sent to the database. This flag currently supports only INSERT queries, and uses ``psycopg2.extras.execute_values``. For other queries it behaves the same as ``'statements_batch'``. - .. seealso:: :ref:`psycopg2_batch_mode` -- 2.47.3