Code
Hub
Trending
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/fastapi/sqlmodel
/ Hero
Class
Hero
docs_src/tutorial/where/tutorial002_py310.py:4–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
3
4
class
Hero(SQLModel, table=True):
5
id: int | None = Field(default=None, primary_key=True)
6
name: str
7
secret_name: str
8
age: int | None = None
9
10
11
sqlite_file_name =
"database.db"
Callers
1
create_heroes
Function · 0.70
Calls
1
Field
Function · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…