MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _find_columns

Function _find_columns

lib/sqlalchemy/sql/elements.py:5778–5783  ·  view source on GitHub ↗

locate Column objects within the given expression.

(clause: ClauseElement)

Source from the content-addressed store, hash-verified

5776
5777
5778def _find_columns(clause: ClauseElement) -> Set[ColumnClause[Any]]:
5779 """locate Column objects within the given expression."""
5780
5781 cols: Set[ColumnClause[Any]] = set()
5782 traverse(clause, {}, {"column": cols.add})
5783 return cols
5784
5785
5786def _type_from_args(args: Sequence[ColumnElement[_T]]) -> TypeEngine[_T]:

Callers 1

Calls 1

traverseFunction · 0.85

Tested by

no test coverage detected