mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Проверка 09.02.2025
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# sql/visitors.py
|
||||
# Copyright (C) 2005-2024 the SQLAlchemy authors and contributors
|
||||
# Copyright (C) 2005-2025 the SQLAlchemy authors and contributors
|
||||
# <see AUTHORS file>
|
||||
#
|
||||
# This module is part of SQLAlchemy and is released under
|
||||
@@ -934,11 +934,13 @@ def traverse(
|
||||
|
||||
from sqlalchemy.sql import visitors
|
||||
|
||||
stmt = select(some_table).where(some_table.c.foo == 'bar')
|
||||
stmt = select(some_table).where(some_table.c.foo == "bar")
|
||||
|
||||
|
||||
def visit_bindparam(bind_param):
|
||||
print("found bound value: %s" % bind_param.value)
|
||||
|
||||
|
||||
visitors.traverse(stmt, {}, {"bindparam": visit_bindparam})
|
||||
|
||||
The iteration of objects uses the :func:`.visitors.iterate` function,
|
||||
|
Reference in New Issue
Block a user