MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / col

Function col

sqlmodel/sql/expression.py:199–202  ·  view source on GitHub ↗
(column_expression: _T)

Source from the content-addressed store, hash-verified

197
198
199def col(column_expression: _T) -> Mapped[_T]:
200 if not isinstance(column_expression, (ColumnClause, Column, InstrumentedAttribute)):
201 raise RuntimeError(f"Not a SQLAlchemy column: {column_expression}")
202 return column_expression # type: ignore

Callers 2

select_heroesFunction · 0.90
select_heroesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected