Code
How tiangolo/sqlmodel is laid out, and where to start for common changes.
There is no import map for this report yet.
Where to start reading
- Repository root
- Repository root
- Likely public API
- Likely public API
- Likely start-up file
- Suggested starting pointAI
- Suggested starting pointAI
- Suggested starting pointAI
Find files for a task
AIAdd a new SQLModel with relationships
- Import and use the model in session queries via sqlmodel.orm.session.Session.
Extend async database operations
- Use sqlmodel.ext.asyncio.AsyncSession instead of sqlmodel.orm.session.Session.
- Wrap session operations in async with blocks and await query execution.
- Test async flows in tests/test_advanced/ following async pytest patterns.
Support a new Python type or SQL column type
- Add custom type class to sqlmodel/sql/sqltypes.py extending SQLAlchemy TypeDecorator.
- Update sqlmodel/_compat.py if compatibility with older SQLAlchemy/Pydantic versions needed.
Add documentation for a feature
- Write corresponding markdown in docs/tutorial/ or docs/advanced/ with code references.
- Update mkdocs.yml navigation if adding new documentation sections.
Change the public API
Trace runtime behavior
Add or update tests
Change build or automation
RepoPilot lists up to 500 files, so a file missing here may still exist.
- Files marked “likely” are guessed from their names.