(
expr: ColumnElement[str],
op: OperatorType,
pattern: Any,
flags: Optional[str],
**kw: Any,
)
| 357 | |
| 358 | |
| 359 | def _regexp_match_impl( |
| 360 | expr: ColumnElement[str], |
| 361 | op: OperatorType, |
| 362 | pattern: Any, |
| 363 | flags: Optional[str], |
| 364 | **kw: Any, |
| 365 | ) -> ColumnElement[Any]: |
| 366 | return BinaryExpression( |
| 367 | expr, |
| 368 | coercions.expect( |
| 369 | roles.BinaryElementRole, |
| 370 | pattern, |
| 371 | expr=expr, |
| 372 | operator=operators.comma_op, |
| 373 | ), |
| 374 | op, |
| 375 | negate=operators.not_regexp_match_op, |
| 376 | modifiers={"flags": flags}, |
| 377 | ) |
| 378 | |
| 379 | |
| 380 | def _regexp_replace_impl( |
nothing calls this directly
no test coverage detected