MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _column_as_key

Function _column_as_key

lib/sqlalchemy/sql/crud.py:603–610  ·  view source on GitHub ↗
(
            key: Union[ColumnClause[Any], str],
        )

Source from the content-addressed store, hash-verified

601 )
602
603 def _column_as_key(
604 key: Union[ColumnClause[Any], str],
605 ) -> Union[str, Tuple[str, str]]:
606 str_key = c_key_role(key)
607 if hasattr(key, "table") and key.table in _et:
608 return (key.table.name, str_key) # type: ignore
609 else:
610 return str_key
611
612 def _getattr_col_key(
613 col: ColumnClause[Any],

Callers 6

_get_crud_paramsFunction · 0.85
_replace_bindmarkersFunction · 0.85
_scan_colsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected