MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / Hero

Class Hero

tests/test_select_typing.py:6–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5def test_fields() -> None:
6 class Hero(SQLModel, table=True):
7 id: int | None = Field(default=None, primary_key=True)
8 name: str
9 secret_name: str
10 age: int | None = None
11 food: str | None = None
12
13 engine = create_engine(
14 "sqlite://", connect_args={"check_same_thread": False}, poolclass=StaticPool

Callers 1

test_fieldsFunction · 0.70

Calls 1

FieldFunction · 0.90

Tested by 1

test_fieldsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…