See :meth:`.ColumnOperators.match`.
(
expr: ColumnElement[Any], op: OperatorType, other: Any, **kw: Any
)
| 281 | |
| 282 | |
| 283 | def _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 | |
| 307 | def _distinct_impl( |
nothing calls this directly
no test coverage detected