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

Function select_heroes

docs_src/tutorial/where/tutorial002_py310.py:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def 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
42def main():

Callers 1

mainFunction · 0.70

Calls 4

SessionClass · 0.90
selectFunction · 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…