This skill equips Claude with specialized knowledge for architecting database layers using SQLAlchemy 2.0+, emphasizing type-safe Declarative mapping and optimized query patterns. It provides immediate access to production-ready templates for session management, complex relationships, and advanced database operations like upserts and JSON column filtering. By applying these patterns, developers can ensure their Python applications maintain high code quality, performance, and maintainability when interacting with relational databases.
주요 기능
016 GitHub stars
02SQLAlchemy 2.0 Declarative Mapping with type-safe Mapped columns
03Modern relationship mapping using back_populates and type hints
04PostgreSQL-specific upsert logic and JSON column manipulation
05Advanced query patterns including scalar fetching and filtering
06Best-practice session management and engine configuration
사용 사례
01Refactoring legacy SQLAlchemy 1.x codebases to modern 2.0 standards
02Building robust data persistence layers for FastAPI or Flask applications
03Implementing complex data structures with relational mapping and JSON storage