Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Master FastAPI from scratch
·
Module 5
Database Integration with SQLAlchemy and Alembic
Async SQLAlchemy with FastAPI: A Django ORM Contrast
Set up async SQLAlchemy with FastAPI, contrasting it with the Django ORM's synchronous model.
2
SQLAlchemy Models vs. Django Models: A Comparison
Define database tables using SQLAlchemy declarative models and compare the approach to Django's `models.py`.
3
Async SQLAlchemy: CRUD Operations
Implement Create and Read (single and list) operations using async SQLAlchemy sessions and queries.
Updating and Deleting Data with Async SQLAlchemy
Implement Update and Delete operations using async SQLAlchemy sessions and queries.
5
Alembic Migrations: A Django Comparison
Set up and use Alembic for database migrations, comparing the workflow to Django's `makemigrations` and `migrate`.
Previous module
Response Models and Error Handling
Next module
The Dependency Injection System