RANIARANIA Academy

Databases with Python

Add durable persistence to your Python programs using relational databases. You will master SQLite with the built-in sqlite3 module, write injection-safe parameterised queries, perform CRUD and transactions, connect to PostgreSQL, and model data with the SQLAlchemy ORM. This course supports preparation for the Python Institute PCPP certification.

Watch the free preview

The relational model and why databases beat files — free to watch, no account needed.

Python: Professional ADVANCED · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Explain the relational model and connect to a SQLite database with the sqlite3 module
  • Write parameterised queries that are safe from SQL injection
  • Perform full CRUD operations and manage transactions with commit and rollback
  • Query related tables using JOINs, aggregation and GROUP BY
  • Connect to PostgreSQL and model data with the SQLAlchemy ORM

Syllabus

Relational Databases & SQLite Foundations
The relational model and why databases beat filesFree preview15 min
Talking to SQLite with the sqlite3 module15 min
Safe Queries & CRUD
Parameterised queries and SQL-injection safety15 min
Full CRUD — Create, Read, Update, Delete15 min
Transactions & Relationships
Transactions, commit and rollback15 min
Relationships — JOINs, foreign keys and aggregates15 min
PostgreSQL & the SQLAlchemy ORM
Scaling up to PostgreSQL15 min
The SQLAlchemy ORM and migrations15 min
Lab — 10 Programming Exercises & Solutions
Programming Exercises 1–515 min
Programming Exercises 6–1015 min