Skip to main content

18 docs tagged with "databases"

View all tags

Database Migrations with Alembic

Manage database schema changes safely using Alembic - auto-generated migrations, upgrade/downgrade, migration environments, and production deployment strategies.

Database Module Projects

Three production-style database engineering projects - a CRUD app with proper data layer, a transaction-safe service, and a full ORM-backed API.

Indexing and Query Optimization

Understand database indexes from the ground up - B-tree internals, query planning, EXPLAIN ANALYZE, composite indexes, and when indexes hurt performance.

Module 07 - Databases Overview

Master database engineering in Python - SQL, SQLite, PostgreSQL, transactions, indexing, SQLAlchemy ORM, and migrations.

ORM with SQLAlchemy

Master SQLAlchemy - the declarative ORM, session management, relationships, lazy vs eager loading, and building production data access layers.

PostgreSQL with Python

Connect Python to PostgreSQL using psycopg2 and psycopg3 - connection pooling, parameterized queries, JSONB, arrays, and production connection management.

Project: Library Management System

Build a command-line library management system backed by SQLite - books, members, loans, with proper SQL, transactions, and a clean data access layer.

SQLite with Python

Use SQLite for development, testing, and embedded applications - the sqlite3 module, connection management, cursors, parameterized queries, and row factories.

Transactions and Data Integrity

Master database transactions in Python - ACID properties, isolation levels, deadlocks, savepoints, and building transaction-safe data layers.