]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add new executemany_mode, support for psycopg2.extras.execute_values()
authorYuval Dinari <>
Mon, 12 Aug 2019 14:44:59 +0000 (10:44 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 12 Aug 2019 19:59:40 +0000 (15:59 -0400)
commit65f8edd45816f91688220b68cc0563797c3dc4ba
tree255475b089bb79331afc8e1eb7273dae43bbc875
parenta168a92d0329630bfc50ceb1b52898b30059db84
Add new executemany_mode, support for psycopg2.extras.execute_values()

Added new dialect flag for the psycopg2 dialect, ``executemany_mode`` which
supersedes the previous experimental ``use_batch_mode`` flag.
``executemany_mode`` supports both the "execute batch" and "execute values"
functions provided by psycopg2, the latter which is used for compiled
:func:`.insert` constructs.   Pull request courtesy Yuval Dinari.

.. seealso::

    :ref:`executemany_mode`

Fixes: #4623
Closes: #4764
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4764
Pull-request-sha: c3d3a36f7eb66c86d14ed9c1c31b4b48bd204855

Change-Id: I77e26ca729f9317af1488a6c054c23fa1a6b622b
doc/build/changelog/unreleased_13/4623.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/psycopg2.py
test/dialect/postgresql/test_dialect.py