MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / query

Method query

test/orm/test_cache_key.py:881–888  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

879 s = Session(testing.db, future=True)
880
881 def query(names):
882 stmt = (
883 select(User)
884 .where(User.name.in_(names))
885 .options(subqueryload(User.addresses))
886 .order_by(User.id)
887 )
888 return s.execute(stmt)
889
890 def go1():
891 r1 = query(["ed"])

Callers 10

test_orm_query_basicMethod · 0.45
twoMethod · 0.45
threeMethod · 0.45
three_aMethod · 0.45
fiveMethod · 0.45
oneMethod · 0.45

Calls 7

selectFunction · 0.90
subqueryloadFunction · 0.90
order_byMethod · 0.45
optionsMethod · 0.45
whereMethod · 0.45
in_Method · 0.45
executeMethod · 0.45

Tested by

no test coverage detected