MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_key

Method _get_key

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

Source from the content-addressed store, hash-verified

1574 table_c = table.to_metadata(meta2)
1575
1576 def _get_key(i):
1577 return (
1578 [i.name, i.unique]
1579 + sorted(i.kwargs.items())
1580 + [str(col) for col in i.expressions]
1581 )
1582
1583 eq_(
1584 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