Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fastapi/sqlmodel
/ select_heroes
Function
select_heroes
docs_src/tutorial/where/tutorial003_py310.py:42–47 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
40
41
42
def
select_heroes():
43
with
Session(engine)
as
session:
44
statement = select(Hero).where(Hero.age > 35)
45
results = session.exec(statement)
46
for
hero in results:
47
print(hero)
48
49
50
def
main():
Callers
1
main
Function · 0.70
Calls
4
Session
Class · 0.90
select
Function · 0.90
where
Method · 0.80
exec
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…