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

Method _col_attached

lib/sqlalchemy/sql/schema.py:4283–4290  ·  view source on GitHub ↗
(column: Column[Any], table: Table)

Source from the content-addressed store, hash-verified

4281 if not has_string_cols:
4282
4283 def _col_attached(column: Column[Any], table: Table) -> None:
4284 # this isinstance() corresponds with the
4285 # isinstance() above; only want to count Table-bound
4286 # columns
4287 if isinstance(table, Table):
4288 cols_wo_table.discard(column)
4289 if not cols_wo_table:
4290 self._check_attach(evt=True)
4291
4292 self._cols_wo_table = cols_wo_table
4293 for col in cols_wo_table:

Callers

nothing calls this directly

Calls 2

_check_attachMethod · 0.95
discardMethod · 0.45

Tested by

no test coverage detected