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

Function select_heroes

docs_src/tutorial/offset_and_limit/tutorial004_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(Hero.age > 32).offset(1).limit(2)
45 results = session.exec(statement)
46 heroes = results.all()
47 print(heroes)
48
49
50def 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…