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

Method key

lib/sqlalchemy/sql/schema.py:1171–1182  ·  view source on GitHub ↗

Return the 'key' for this :class:`_schema.Table`. This value is used as the dictionary key within the :attr:`_schema.MetaData.tables` collection. It is typically the same as that of :attr:`_schema.Table.name` for a table with no :attr:`_schema.Table.schema`

(self)

Source from the content-addressed store, hash-verified

1169
1170 @property
1171 def key(self) -> str:
1172 """Return the 'key' for this :class:`_schema.Table`.
1173
1174 This value is used as the dictionary key within the
1175 :attr:`_schema.MetaData.tables` collection. It is typically the same
1176 as that of :attr:`_schema.Table.name` for a table with no
1177 :attr:`_schema.Table.schema`
1178 set; otherwise it is typically of the form
1179 ``schemaname.tablename``.
1180
1181 """
1182 return _get_table_key(self.name, self.schema)
1183
1184 def __repr__(self) -> str:
1185 return "Table(%s)" % ", ".join(

Callers

nothing calls this directly

Calls 1

_get_table_keyFunction · 0.85

Tested by

no test coverage detected