(
expr: ColumnElement[str],
op: OperatorType,
pattern: Any,
flags: Optional[str],
**kw: Any,
)
| 370 | |
| 371 | |
| 372 | def _regexp_match_impl( |
| 373 | expr: ColumnElement[str], |
| 374 | op: OperatorType, |
| 375 | pattern: Any, |
| 376 | flags: Optional[str], |
| 377 | **kw: Any, |
| 378 | ) -> ColumnElement[Any]: |
| 379 | return BinaryExpression( |
| 380 | expr, |
| 381 | coercions.expect( |
| 382 | roles.BinaryElementRole, |
| 383 | pattern, |
| 384 | expr=expr, |
| 385 | operator=operators.comma_op, |
| 386 | ), |
| 387 | op, |
| 388 | negate=operators.not_regexp_match_op, |
| 389 | modifiers={"flags": flags}, |
| 390 | ) |
| 391 | |
| 392 | |
| 393 | def _regexp_replace_impl( |
nothing calls this directly
no test coverage detected