Introduction to SQLAlchemy 2020 (Tutorial)
summary
A ground-up tour of SQLAlchemy that demos a working space invaders demo storing game state in SQLite via the ORM, explains the four-layer model (Engine and Connection Basics, SQL Expression Language), and previews the 1.4→2.0 transition: unified select/ORM results, cached SQL compilation, refined result rows, and removal of implicit string execution and autocommit. Examples show actual code for create/reflect tables, joins, CTEs, eager loading, and the session unit-of-work; the demos run and produce measurable caching and SQL output.
AI-written summary · about
chapters (18)
- 0:00Introduction to SQLAlchemy
- 0:42Space Invaders demo
- 3:38Prerequisite knowledge
- 4:20Overview of SQLAlchemy
- 13:45Engine and connections
- 23:57Executing SQL statements
- 36:45Transactions and context managers
- 43:15Metadata and schema
- 59:25Core SQL expression language
- 1:17:29Break and Q&A
- 1:30:28Advanced SQL: Joins and CTEs
- 1:55:55Introduction to ORM
- 2:03:15Break and Q&A
- 2:05:15ORM basics
- 2:32:55ORM querying
- 2:43:13Relationships and eager loading
- 2:52:00SQLAlchemy 2.0 features
- 2:56:13Summary and Q&A
