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

Function cast

sqlmodel/sql/expression.py:98–102  ·  view source on GitHub ↗
(
    expression: _ColumnExpressionOrLiteralArgument[Any] | Any,
    type_: "_TypeEngineArgument[_T]",
)

Source from the content-addressed store, hash-verified

96
97
98def cast(
99 expression: _ColumnExpressionOrLiteralArgument[Any] | Any,
100 type_: "_TypeEngineArgument[_T]",
101) -> Cast[_T]:
102 return sqlalchemy.cast(expression, type_)
103
104
105def try_cast(

Callers 4

__new__Method · 0.85
get_column_from_fieldFunction · 0.85
load_dialect_implMethod · 0.85
execMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…