]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
refactor (sql): simplify and optimize internal SQL handling
authorShamil <ashm.tech@proton.me>
Mon, 21 Apr 2025 16:36:21 +0000 (12:36 -0400)
committersqla-tester <sqla-tester@sqlalchemy.org>
Mon, 21 Apr 2025 16:36:21 +0000 (12:36 -0400)
commit93b0be7009b4f6efd091fda31229353f929f4cc9
treec27cc329db8f37cda1c7263fdf9827247ea8fe27
parent3217acc1131048aa67744e032fe8816407d8dfba
refactor (sql): simplify and optimize internal SQL handling

Replaced redundant variable assignments with direct operations. Used `dict.get()` for safer dictionary lookups to streamline logic. Improves code readability and reduces unnecessary lines.

Closes: #12538
Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12538
Pull-request-sha: d322d1508cfc37668099e6624816aba9c647ad51

Change-Id: Ib3dfc7086ec35117fdad65e136a17aa014b96ae5
lib/sqlalchemy/sql/cache_key.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/lambdas.py