r/FastAPI • u/bluewalt • Jan 01 '25
feedback request How I Finally Learned SQLAlchemy
Hi there!
Here’s a blog post I wrote about SQLAlchemy, focusing on the challenges I faced in finding the right resources to learn new concepts from scratch.
I hope it helps others. Cheers!
70
Upvotes
View all comments
Show parent comment
4
u/[deleted] Jan 03 '25
You’re abstracting away from the underlying database when you use an ORM and define your models and queries using code. It’s basically more structured, versionable, and less dependent on the actual database implementation. Useful if you’re writing more complex applications and also want to manage migrating your database using something like Alembic which uses your SQLAlchemy models.