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

Method _set_parent

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

Source from the content-addressed store, hash-verified

4341 ) from ke
4342
4343 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4344 assert isinstance(parent, (Table, Column))
4345
4346 for col in self._col_expressions(parent):
4347 if col is not None:
4348 self._columns.add(col)
4349
4350
4351class ColumnCollectionConstraint(ColumnCollectionMixin, Constraint):

Callers

nothing calls this directly

Calls 2

_col_expressionsMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected