MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / scalar

Method scalar

test/orm/inheritance/test_single.py:270–271  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

268 m1id, e1id, e2id = m1.employee_id, e1.employee_id, e2.employee_id
269
270 def scalar(q):
271 return [x for x, in q]
272
273 eq_(scalar(session.query(Employee.employee_id)), [m1id, e1id, e2id])
274

Callers 15

test_twophaseMethod · 0.45
_assert_countMethod · 0.45
test_persistenceMethod · 0.45
test_delete_cascadeMethod · 0.45
test_remove_orphansMethod · 0.45
test_existsMethod · 0.45
test_sumMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected