Skip to main content
Loading page…
Python Mastery
Chapter 30
Lesson 1 of 4
SQLAlchemy Core & the Engine
Contents
Notes
Tutor
Concept
What SQLAlchemy Is (and Is Not)
Loading activity…
Previous
1 / 9
Continue
Contents
Notes
Discussion
Tutor
28 min
9 activities
0 of 9 done
In this lesson
1
What SQLAlchemy Is (and Is Not)
2
create_engine and the Connection Pool
3
Creating Tables and Inserting Rows with Core
4
text() — Raw SQL Done Right
5
Never Use f-strings or % Formatting in SQL
6
Transactions: begin() vs connect()
7
Safe Parameterized Query
8
engine.connect() vs engine.begin()
9
Core Concepts Matching
Objectives
Learner can install SQLAlchemy and create an Engine for SQLite and PostgreSQL
Learner can execute parameterized queries safely using text() and avoid SQL injection
Learner can use the Core expression language to build SELECT/INSERT/UPDATE/DELETE statements
Learner can manage transactions with begin/commit/rollback using Connection context managers
Chapter 30 · Database Mastery with SQLAlchemy
SQLAlchemy Core & the Engine
ORM Models & Sessions
Relationships & Query Performance
Schema Migrations with Alembic
Previous: An End-to-End Automation
Next: ORM Models & Sessions