MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / or_

Method or_

lib/sqlalchemy/sql/elements.py:3470–3487  ·  view source on GitHub ↗

Produce a conjunction of expressions joined by ``OR``. See :func:`_sql.or_` for full documentation.

(
        cls,
        initial_clause: Union[
            Literal[False], _ColumnExpressionArgument[bool], _NoArg
        ] = _NoArg.NO_ARG,
        *clauses: _ColumnExpressionArgument[bool],
    )

Source from the content-addressed store, hash-verified

3468
3469 @classmethod
3470 def or_(
3471 cls,
3472 initial_clause: Union[
3473 Literal[False], _ColumnExpressionArgument[bool], _NoArg
3474 ] = _NoArg.NO_ARG,
3475 *clauses: _ColumnExpressionArgument[bool],
3476 ) -> ColumnElement[bool]:
3477 """Produce a conjunction of expressions joined by ``OR``.
3478
3479 See :func:`_sql.or_` for full documentation.
3480 """
3481 return cls._construct(
3482 operators.or_,
3483 False_._singleton,
3484 True_._singleton,
3485 initial_clause,
3486 *clauses,
3487 )
3488
3489 @property
3490 def _select_iterable(self) -> _SelectIterable:

Callers 14

_internal_has_tableMethod · 0.80
or_Function · 0.80
mainFunction · 0.80
test_noormMethod · 0.80
test_withjoinedloadMethod · 0.80
test_dslishMethod · 0.80
test_outer_joinMethod · 0.80

Calls 1

_constructMethod · 0.45

Tested by 9

test_noormMethod · 0.64
test_withjoinedloadMethod · 0.64
test_dslishMethod · 0.64
test_outer_joinMethod · 0.64
test_outer_join_countMethod · 0.64
test_fromMethod · 0.64