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

Method _construct_raw

lib/sqlalchemy/sql/elements.py:2780–2791  ·  view source on GitHub ↗
(
        cls,
        operator: OperatorType,
        clauses: Optional[Sequence[ColumnElement[Any]]] = None,
    )

Source from the content-addressed store, hash-verified

2778
2779 @classmethod
2780 def _construct_raw(
2781 cls,
2782 operator: OperatorType,
2783 clauses: Optional[Sequence[ColumnElement[Any]]] = None,
2784 ) -> ClauseList:
2785 self = cls.__new__(cls)
2786 self.clauses = list(clauses) if clauses else []
2787 self.group = True
2788 self.operator = operator
2789 self.group_contents = True
2790 self._is_implicitly_boolean = False
2791 return self
2792
2793 def __iter__(self) -> Iterator[ColumnElement[Any]]:
2794 return iter(self.clauses)

Callers 13

__init__Method · 0.45
_group_by_clauseMethod · 0.45
_order_by_clauseMethod · 0.45
_constructMethod · 0.45
update_stmtFunction · 0.45
delete_stmtFunction · 0.45
test_empty_and_rawMethod · 0.45
test_empty_or_rawMethod · 0.45
test_where_emptyMethod · 0.45
test_where_emptyMethod · 0.45

Calls 1

__new__Method · 0.45

Tested by 6

test_empty_and_rawMethod · 0.36
test_empty_or_rawMethod · 0.36
test_where_emptyMethod · 0.36
test_where_emptyMethod · 0.36