SQLAlchemy Knowledge Patch

•
24
•

Guides SQLAlchemy 2.0+ development with updated dialect behaviors, ORM typing conventions, and deprecation fixes.

The SQLAlchemy Knowledge Patch bridges the gap between LLM training cutoffs and the latest SQLAlchemy 2.0.x and 2.1 developments. It provides Claude Code with up-to-date guidance on typing annotations (PEP 604/695), ORM dataclass integrations, explicit subquery aliasing, async engine pooling (such as aiosqlite and asyncpg isolation), and dialect-specific features across PostgreSQL, MySQL/MariaDB, SQLite, Oracle, and SQL Server. This skill is indispensable when refactoring legacy database access code, updating ORM models, writing migrations, or auditing compatibility for newer Python runtimes like Python 3.13t and 3.14.

주요 기능

01Guides dialect-specific modernizations including PostgreSQL JSONB index rebuilds and SQLite strict tables
02Details advanced Core and ORM patterns like GROUPS window frames, composite loader options, and dataclass metadata
03Identifies upcoming SQLAlchemy 2.1 deprecations like implicit aliased subqueries and dotted loader wildcards
04Provides accurate typing rules for Mapped annotations, type annotation maps, and PEP 695 type aliases
0524 GitHub stars
06Outlines async engine configuration nuances including aiosqlite connection pools and asyncpg isolation levels

사용 사례

01Refactoring ORM models to use modern type annotations and MappedAsDataclass patterns
02Upgrading database layers and migrations from SQLAlchemy 1.4 or early 2.0 to modern 2.0.51+ standards
03Configuring modern async database drivers like asyncpg, aiosqlite, and aioodbc with proper pooling