]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
normalize execute style for events, 2.0
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Aug 2020 16:08:26 +0000 (12:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 20 Aug 2020 14:14:21 +0000 (10:14 -0400)
commita1939719a652774a437f69f8d4788b3f08650089
tree309b7423fc4fa919af7af2bb9da81be824ccda87
parent0901190bb440580f0664fe3f6310173762b908e0
normalize execute style for events, 2.0

The _execute_20 and exec_driver_sql methods should wrap
up the parameters so that they represent the single list / single
dictionary style of invocation into the legacy methods.  then
the before_ after_ execute event handlers should be receiving
the parameter dictionary as a single dictionary.   this requires
that we break out distill_params to work differently if event
handlers are present.

additionally, add deprecation warnings for old argument passing
styles.

Change-Id: I97cb4d06adfcc6b889f10d01cc7775925cffb116
12 files changed:
doc/build/core/tutorial.rst
lib/sqlalchemy/cextension/utils.c
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/util.py
lib/sqlalchemy/testing/assertsql.py
test/aaa_profiling/test_resultset.py
test/dialect/postgresql/test_query.py
test/engine/test_deprecations.py
test/engine/test_execute.py
test/engine/test_processors.py
test/profiles.txt