The SQLAlchemy Knowledge Patch equips Claude Code with up-to-date best practices, breaking change mitigations, and dialect-specific nuances across SQLAlchemy 2.0 through upcoming 2.1 releases. It helps developers avoid subtle pitfalls such as PostgreSQL JSONB index mismatch caused by bracket subscripting, deprecated aliased query forms, async pooling edge cases in aiosqlite and asyncpg, and type annotation resolution quirks under modern Python runtimes. Use this skill when upgrading SQLAlchemy versions, refactoring ORM mappings and dataclass integration, writing complex SQL expressions, or tuning dialect configurations across PostgreSQL, MySQL, SQLite, Oracle, and SQL Server.
주요 기능
0126 GitHub stars
02Identifies critical deprecations and breaking changes transitioning into SQLAlchemy 2.1
03Resolves modern typing patterns, PEP 695 type aliases, and dataclass metadata mappings
04Guides PostgreSQL 14+ JSONB expression index rebuilds and array casting adjustments
05Provides dialect-specific guidance for PostgreSQL, MariaDB, MySQL, SQLite, and Oracle
06Optimizes async connection pooling and isolation settings for asyncpg and aiosqlite
사용 사례
01Upgrading legacy SQLAlchemy ORM models and queries to modern 2.0.x and 2.1-ready standards
02Diagnosing and refactoring dialect-specific SQL syntax, window frames, and composite loader options
03Configuring robust async database engines and connection pools for FastAPI or Starlette apps