]> 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)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 24 Apr 2025 19:51:11 +0000 (21:51 +0200)
commit3ca84922d77f1be601c0989d67ac3995a9de2b56
tree5f446aa98b29819e4198636314b49cc7298bd361
parent51c12a778479b153d85f3a66c8e6ec445ceace54
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
(cherry picked from commit 93b0be7009b4f6efd091fda31229353f929f4cc9)
lib/sqlalchemy/sql/cache_key.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/crud.py
lib/sqlalchemy/sql/lambdas.py