Skip to main content
Loading page…
Python Mastery
Chapter 27
Lesson 4 of 4
ORMs (SQLAlchemy) & PostgreSQL
Contents
Notes
Tutor
Note
This lesson is a conceptual overview
Loading activity…
Previous
1 / 11
Continue
Contents
Notes
Discussion
Tutor
28 min
11 activities
0 of 11 done
In this lesson
1
This lesson is a conceptual overview
2
What Is an ORM?
3
SQLAlchemy: A Quick Look at the Syntax
4
The Session: Unit of Work
5
Migrations: Evolving Your Schema
6
SQLite vs PostgreSQL: When to Switch
7
Pitfall: The N+1 Query Problem
8
ORM vs Raw SQL Decision
9
SQLAlchemy Concepts Review
10
ORM Trade-off Reflection
11
Summary: Which Tool When?
Objectives
Learner can explain what an ORM does and its trade-offs vs raw SQL
Learner can define a SQLAlchemy model class and map it to a database table
Learner can perform queries using the SQLAlchemy session and query API
Learner can describe the concept of database migrations and when to use PostgreSQL
Chapter 27 · APIs, HTTP & Databases
HTTP & the requests Library
Consuming REST APIs & Auth
SQL & SQLite
ORMs (SQLAlchemy) & PostgreSQL
Previous: SQL & SQLite
Next: How the Web Works & HTML Structure