MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / Value

Class Value

tortoise/expressions.py:66–75  ·  view source on GitHub ↗

Wrapper for a value that should be used as a term in a query.

Source from the content-addressed store, hash-verified

64
65
66class Value(Expression):
67 """
68 Wrapper for a value that should be used as a term in a query.
69 """
70
71 def __init__(self, value: Any) -> None:
72 self.value = value
73
74 def resolve(self, resolve_context: ResolveContext) -> ResolveResult:
75 return ResolveResult(term=ValueWrapper(self.value))
76
77
78class Connector(Enum):

Callers 3

_resolve_expressionFunction · 0.90
__init__Method · 0.85
_combineMethod · 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…