SQLAlchemy
v2.0 — 2026 Edition. A comprehensive audio course on SQLAlchemy, covering both the Core and the ORM, designed for the 2.0 version released in 2026. Learn how to map your domain, structure your application, manage transactions with the Session, and execute queries effectively.
Episodes
The Foundation: What is SQLAlchemy and the ORM?
3m 24sWelcome to SQLAlchemy. We introduce the core architecture, explaining the difference between the schema-centric Core and the domain-centric ORM. You will learn the foundational lingo and why you need an ORM.
The Engine: Your Gateway to the Database
3m 30sEvery SQLAlchemy application starts with the Engine. Learn how to establish connectivity, what connection pooling is, and how dialects and DBAPIs bridge the gap to your database.
Mapping the Domain: Declarative Base and Models
3m 52sTranslate your Python classes into database tables automatically. We cover the DeclarativeBase, Mapped types, and how mapped_column constructs your database metadata.
Project Layout: Structuring Your Application
3m 19sCode organization matters. Learn the best practices for structuring an SQLAlchemy project repository so your engine, models, and sessions stay clean and maintainable.
The Session: Mastering the Unit of Work
3m 39sDiscover the Unit of Work pattern through the ORM Session. Learn how to add objects, when flushes occur, and how to commit transactions perfectly.
Querying Data: The Modern Select Construct
3m 03sFetch your data exactly how you need it. We explore SQLAlchemy 2.0's unified select() construct, filtering with where(), and executing queries with the session.
Connecting the Dots: Relationships and Joins
3m 41sLink your tables seamlessly. Learn how to configure relationships, use back_populates, and automatically manage SQL JOINs across related models.