MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / replace

Method replace

lib/sqlalchemy/sql/selectable.py:1422–1429  ·  view source on GitHub ↗
(
            obj: Union[BinaryExpression[Any], ColumnClause[Any]],
            **kw: Any,
        )

Source from the content-addressed store, hash-verified

1420 # ColumnClause with parent table referring to those
1421 # replaced FromClause objects
1422 def replace(
1423 obj: Union[BinaryExpression[Any], ColumnClause[Any]],
1424 **kw: Any,
1425 ) -> Optional[KeyedColumnElement[Any]]:
1426 if isinstance(obj, ColumnClause) and obj.table in new_froms:
1427 newelem = new_froms[obj.table].corresponding_column(obj)
1428 return newelem
1429 return None
1430
1431 kw["replace"] = replace
1432

Callers 15

_setup_for_driverFunction · 0.45
setup.pyFile · 0.45
_set_parentMethod · 0.45
_replaceMethod · 0.45
__getitem__Method · 0.45
_gen_tq_labelMethod · 0.45
safe_constructMethod · 0.45
__add__Method · 0.45
__radd__Method · 0.45
coercions.pyFile · 0.45

Calls 1

corresponding_columnMethod · 0.45

Tested by

no test coverage detected