MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _set_parent

Method _set_parent

lib/sqlalchemy/sql/schema.py:4723–4728  ·  view source on GitHub ↗
(self, parent: SchemaEventTarget, **kw: Any)

Source from the content-addressed store, hash-verified

4721 ) from ke
4722
4723 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4724 assert isinstance(parent, (Table, Column))
4725
4726 for col in self._col_expressions(parent):
4727 if col is not None:
4728 self._columns.add(col)
4729
4730
4731class ColumnCollectionConstraint(ColumnCollectionMixin, Constraint):

Callers

nothing calls this directly

Calls 2

_col_expressionsMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected