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

Method and_

lib/sqlalchemy/sql/elements.py:3167–3184  ·  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

3165
3166 @classmethod
3167 def and_(
3168 cls,
3169 initial_clause: Union[
3170 Literal[True], _ColumnExpressionArgument[bool], _NoArg
3171 ] = _NoArg.NO_ARG,
3172 *clauses: _ColumnExpressionArgument[bool],
3173 ) -> ColumnElement[bool]:
3174 r"""Produce a conjunction of expressions joined by ``AND``.
3175
3176 See :func:`_sql.and_` for full documentation.
3177 """
3178 return cls._construct(
3179 operators.and_,
3180 True_._singleton,
3181 False_._singleton,
3182 initial_clause,
3183 *clauses,
3184 )
3185
3186 @classmethod
3187 def or_(

Callers 2

__eq__Method · 0.45
and_Function · 0.45

Calls 1

_constructMethod · 0.45

Tested by

no test coverage detected