MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _regexp_match_impl

Function _regexp_match_impl

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

Source from the content-addressed store, hash-verified

357
358
359def _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
380def _regexp_replace_impl(

Callers

nothing calls this directly

Calls 1

BinaryExpressionClass · 0.85

Tested by

no test coverage detected