Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/fastapi/sqlmodel
/ select_heroes
Function
select_heroes
docs_src/tutorial/where/tutorial001_py310.py:34–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
33
34
def
select_heroes():
35
with
Session(engine)
as
session:
36
statement = select(Hero).where(Hero.name ==
"Deadpond"
)
37
results = session.exec(statement)
38
for
hero in results:
39
print(hero)
40
41
42
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…