MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / key

Method key

lib/sqlalchemy/sql/schema.py:1388–1399  ·  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

1386
1387 @property
1388 def key(self) -> str:
1389 """Return the 'key' for this :class:`_schema.Table`.
1390
1391 This value is used as the dictionary key within the
1392 :attr:`_schema.MetaData.tables` collection. It is typically the same
1393 as that of :attr:`_schema.Table.name` for a table with no
1394 :attr:`_schema.Table.schema`
1395 set; otherwise it is typically of the form
1396 ``schemaname.tablename``.
1397
1398 """
1399 return _get_table_key(self.name, self.schema)
1400
1401 def __repr__(self) -> str:
1402 return "Table(%s)" % ", ".join(

Callers

nothing calls this directly

Calls 1

_get_table_keyFunction · 0.85

Tested by

no test coverage detected