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

Method _get_key

test/sql/test_metadata.py:1641–1646  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

1639 table_c = table.to_metadata(meta2)
1640
1641 def _get_key(i):
1642 return (
1643 [i.name, i.unique]
1644 + sorted(i.kwargs.items())
1645 + [str(col) for col in i.expressions]
1646 )
1647
1648 eq_(
1649 sorted([_get_key(i) for i in table.indexes]),

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected