MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _mapping

Method _mapping

test/sql/test_text.py:638–644  ·  view source on GitHub ↗
(self, stmt)

Source from the content-addressed store, hash-verified

636 return t
637
638 def _mapping(self, stmt):
639 compiled = stmt.compile()
640 return {
641 elem: key
642 for key, elements in compiled._create_result_map().items()
643 for elem in elements[1]
644 }
645
646 def test_select_label_alt_name(self):
647 t = self._xy_table_fixture()

Calls 3

_create_result_mapMethod · 0.80
compileMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected