MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / adapt_check_present

Method adapt_check_present

lib/sqlalchemy/sql/util.py:1349–1357  ·  view source on GitHub ↗
(
        self, col: ColumnElement[Any]
    )

Source from the content-addressed store, hash-verified

1347 adapt_list = ClauseAdapter.copy_and_process
1348
1349 def adapt_check_present(
1350 self, col: ColumnElement[Any]
1351 ) -> Optional[ColumnElement[Any]]:
1352 newcol = self.columns[col]
1353
1354 if newcol is col and self._corresponding_column(col, True) is None:
1355 return None
1356
1357 return newcol
1358
1359 def _locate_col(
1360 self, col: ColumnElement[Any]

Callers

nothing calls this directly

Calls 1

_corresponding_columnMethod · 0.80

Tested by

no test coverage detected