# SQLAlchemy and SQLModel: When a Project Uses an ORM

An ORM such as SQLAlchemy or SQLModel lets a project describe each table as a Python class and ask for rows with Python methods that write the SQL for it; this lesson reads the same workout query written with sqlite3, SQLAlchemy and SQLModel, what each costs and gives, and the signs that show which one a project uses.

![Cheat sheet: SQLAlchemy and SQLModel: When a Project Uses an ORM](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/3702cb73e24a40749a7034ca22e348e2.webp)

- Category: FastAPI
- Level: Journeyman
- Tags: fastapi, ORM (database), rest-api, SQLAlchemy, SQLModel
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/fastapi-data-orms-cheat-sheet
