MCPcopy
hub / github.com/fastapi/sqlmodel / select_heroes

Function select_heroes

docs_src/tutorial/where/tutorial011_py310.py:42–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def select_heroes():
43 with Session(engine) as session:
44 statement = select(Hero).where(col(Hero.age) >= 35)
45 results = session.exec(statement)
46 for hero in results:
47 print(hero)
48
49
50def main():

Callers 1

mainFunction · 0.70

Calls 5

SessionClass · 0.90
selectFunction · 0.90
colFunction · 0.90
whereMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…