MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _regexp_match_impl

Function _regexp_match_impl

lib/sqlalchemy/sql/default_comparator.py:372–390  ·  view source on GitHub ↗
(
    expr: ColumnElement[str],
    op: OperatorType,
    pattern: Any,
    flags: Optional[str],
    **kw: Any,
)

Source from the content-addressed store, hash-verified

370
371
372def _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
393def _regexp_replace_impl(

Callers

nothing calls this directly

Calls 1

BinaryExpressionClass · 0.85

Tested by

no test coverage detected