MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / and_

Method and_

lib/sqlalchemy/sql/elements.py:3450–3467  ·  view source on GitHub ↗

r"""Produce a conjunction of expressions joined by ``AND``. See :func:`_sql.and_` for full documentation.

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

Source from the content-addressed store, hash-verified

3448
3449 @classmethod
3450 def and_(
3451 cls,
3452 initial_clause: Union[
3453 Literal[True], _ColumnExpressionArgument[bool], _NoArg
3454 ] = _NoArg.NO_ARG,
3455 *clauses: _ColumnExpressionArgument[bool],
3456 ) -> ColumnElement[bool]:
3457 r"""Produce a conjunction of expressions joined by ``AND``.
3458
3459 See :func:`_sql.and_` for full documentation.
3460 """
3461 return cls._construct(
3462 operators.and_,
3463 True_._singleton,
3464 False_._singleton,
3465 initial_clause,
3466 *clauses,
3467 )
3468
3469 @classmethod
3470 def or_(

Callers 2

__eq__Method · 0.45
and_Function · 0.45

Calls 1

_constructMethod · 0.45

Tested by

no test coverage detected