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

Method _mapping

test/sql/test_selectable.py:3892–3898  ·  view source on GitHub ↗
(self, stmt)

Source from the content-addressed store, hash-verified

3890 return t
3891
3892 def _mapping(self, stmt):
3893 compiled = stmt.compile()
3894 return {
3895 elem: key
3896 for key, elements in compiled._create_result_map().items()
3897 for elem in elements[1]
3898 }
3899
3900 def test_select_label_alt_name(self):
3901 t = self._fixture()

Calls 3

_create_result_mapMethod · 0.80
compileMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected