MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / MatchType

Class MatchType

lib/sqlalchemy/sql/sqltypes.py:3763–3774  ·  view source on GitHub ↗

Refers to the return type of the MATCH operator. As the :meth:`.ColumnOperators.match` is probably the most open-ended operator in generic SQLAlchemy Core, we can't assume the return type at SQL evaluation time, as MySQL returns a floating point, not a boolean, and other backends mi

Source from the content-addressed store, hash-verified

3761
3762
3763class MatchType(Boolean):
3764 """Refers to the return type of the MATCH operator.
3765
3766 As the :meth:`.ColumnOperators.match` is probably the most open-ended
3767 operator in generic SQLAlchemy Core, we can't assume the return type
3768 at SQL evaluation time, as MySQL returns a floating point, not a boolean,
3769 and other backends might do something different. So this type
3770 acts as a placeholder, currently subclassing :class:`.Boolean`.
3771 The type allows dialects to inject result-processing functionality
3772 if needed, and on MySQL will return floating-point values.
3773
3774 """
3775
3776
3777_UUID_RETURN = TypeVar("_UUID_RETURN", str, _python_UUID)

Callers 2

sqltypes.pyFile · 0.85

Calls

no outgoing calls

Tested by 1