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

Method _mapping

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

Source from the content-addressed store, hash-verified

3877 return t
3878
3879 def _mapping(self, stmt):
3880 compiled = stmt.compile()
3881 return {
3882 elem: key
3883 for key, elements in compiled._create_result_map().items()
3884 for elem in elements[1]
3885 }
3886
3887 def test_select_label_alt_name(self):
3888 t = self._fixture()

Calls 3

_create_result_mapMethod · 0.80
compileMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected