MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _construct_raw

Method _construct_raw

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

Source from the content-addressed store, hash-verified

3061
3062 @classmethod
3063 def _construct_raw(
3064 cls,
3065 operator: OperatorType,
3066 clauses: Optional[Sequence[ColumnElement[Any]]] = None,
3067 ) -> ClauseList:
3068 self = cls.__new__(cls)
3069 self.clauses = list(clauses) if clauses else []
3070 self.group = True
3071 self.operator = operator
3072 self.group_contents = True
3073 self._is_implicitly_boolean = False
3074 return self
3075
3076 def __iter__(self) -> Iterator[ColumnElement[Any]]:
3077 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