MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / function_cast

Method function_cast

tortoise/fields/data.py:395–396  ·  view source on GitHub ↗
(self, term: Term)

Source from the content-addressed store, hash-verified

393 SQL_TYPE = "VARCHAR(40)"
394
395 def function_cast(self, term: Term) -> Term:
396 return functions.Cast(term, SqlTypes.NUMERIC)
397
398
399# In case of queryset with filter `__year`/`__month`/`__day` ..., value can be int, float or str. Example:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected