MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_sql_expr_cte_from_entity

Method test_sql_expr_cte_from_entity

test/orm/test_query.py:7145–7151  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7143 session.query(subq).all()
7144
7145 def test_sql_expr_cte_from_entity(self):
7146 User = self.classes.User
7147 session = fixture_session()
7148 with self._assert_bind_args(session, expect_mapped_bind=True):
7149 cte = session.query(User.id).cte()
7150 subq = session.query(cte).subquery()
7151 session.query(subq).all()
7152
7153 def test_sql_expr_bundle_cte_from_entity(self):
7154 User = self.classes.User

Callers

nothing calls this directly

Calls 6

_assert_bind_argsMethod · 0.95
fixture_sessionFunction · 0.90
cteMethod · 0.45
queryMethod · 0.45
subqueryMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected