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

Function _column_as_key

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

Source from the content-addressed store, hash-verified

538 )
539
540 def _column_as_key(
541 key: Union[ColumnClause[Any], str],
542 ) -> Union[str, Tuple[str, str]]:
543 str_key = c_key_role(key)
544 if hasattr(key, "table") and key.table in _et:
545 return (key.table.name, str_key) # type: ignore
546 else:
547 return str_key
548
549 def _getattr_col_key(
550 col: ColumnClause[Any],

Callers 5

_get_crud_paramsFunction · 0.85
_scan_colsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected