MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / _table_key_within_construction

Method _table_key_within_construction

lib/sqlalchemy/sql/schema.py:3338–3348  ·  view source on GitHub ↗

get the table key but only safely

(self)

Source from the content-addressed store, hash-verified

3336 return self._column_tokens[0]
3337
3338 def _table_key_within_construction(self) -> Any:
3339 """get the table key but only safely"""
3340
3341 if self._table_column is not None:
3342 if self._table_column.table is None:
3343 return None
3344 else:
3345 return self._table_column.table.key
3346 else:
3347 schema, tname, colname = self._column_tokens
3348 return _get_table_key(tname, schema)
3349
3350 target_fullname = property(_get_colspec)
3351

Callers 2

_validate_dest_tableMethod · 0.80
_copyMethod · 0.80

Calls 1

_get_table_keyFunction · 0.85

Tested by

no test coverage detected