]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
implement mysql limit() for UPDATE/DELETE DML (patch 2)
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 24 Feb 2025 20:10:54 +0000 (15:10 -0500)
committerMichael Bayer <mike_mp@zzzcomputing.com>
Thu, 6 Mar 2025 14:55:40 +0000 (14:55 +0000)
commit33be2722905f74562cb47cf6c23948065ae91e47
tree8d5f1191b5a8b94b6335a82bbedb9ec3b3e308a5
parent4e4e631c1356e75ebc2c8ca5fe7b12d491c7ad12
implement mysql limit() for UPDATE/DELETE DML (patch 2)

Added new construct :func:`_mysql.limit` which can be applied to any
:func:`_sql.update` or :func:`_sql.delete` to provide the LIMIT keyword to
UPDATE and DELETE.  This new construct supersedes the use of the
"mysql_limit" dialect keyword argument.

Change-Id: Ie10c2f273432b0c8881a48f5b287f0566dde6ec3
doc/build/changelog/unreleased_21/mysql_limit.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/mysql/__init__.py
lib/sqlalchemy/dialects/mysql/base.py
lib/sqlalchemy/dialects/mysql/dml.py
lib/sqlalchemy/sql/compiler.py
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_query.py