Python Database Operations

•
16
•

Streamlines SQLAlchemy 2.0 implementation and database architecture patterns for modern Python applications.

This skill equips Claude with specialized knowledge for implementing robust database layers using SQLAlchemy 2.0 and Python 3.10+. It focuses on modern best practices including type-safe declarative mapping, asynchronous database sessions with asyncpg or aiosqlite, and advanced relationship management. By providing standardized patterns for the Repository and Unit of Work patterns, as well as seamless FastAPI integration, it helps developers build scalable, maintainable, and high-performance data-driven applications with clear migration strategies via Alembic.

主要功能

01Complex ORM relationship mapping and eager loading patterns
0216 GitHub stars
03Alembic migration setup and configuration templates
04FastAPI dependency injection integration for database sessions
05SQLAlchemy 2.0 Declarative Mapping with Mapped types
06Asynchronous session management and connection pooling

使用场景

01Implementing type-safe database repositories and unit of work patterns
02Building scalable asynchronous backends with FastAPI and PostgreSQL
03Migrating legacy SQLAlchemy codebases to the modern 2.0 API