MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _match_impl

Function _match_impl

lib/sqlalchemy/sql/default_comparator.py:283–304  ·  view source on GitHub ↗

See :meth:`.ColumnOperators.match`.

(
    expr: ColumnElement[Any], op: OperatorType, other: Any, **kw: Any
)

Source from the content-addressed store, hash-verified

281
282
283def _match_impl(
284 expr: ColumnElement[Any], op: OperatorType, other: Any, **kw: Any
285) -> ColumnElement[Any]:
286 """See :meth:`.ColumnOperators.match`."""
287
288 return _boolean_compare(
289 expr,
290 operators.match_op,
291 coercions.expect(
292 roles.BinaryElementRole,
293 other,
294 expr=expr,
295 operator=operators.match_op,
296 ),
297 result_type=type_api.MATCHTYPE,
298 negate_op=(
299 operators.not_match_op
300 if op is operators.match_op
301 else operators.match_op
302 ),
303 **kw,
304 )
305
306
307def _distinct_impl(

Callers

nothing calls this directly

Calls 1

_boolean_compareFunction · 0.85

Tested by

no test coverage detected