SQLAlchemy Python Patterns

•
18
•

Implements modern SQLAlchemy 2.0+ ORM patterns for efficient Python database management and querying.

This skill provides specialized knowledge of modern SQLAlchemy 2.0+ patterns, enabling Claude to generate type-safe and efficient database interaction code. It covers the complete database lifecycle, from defining models using the latest Mapped and mapped_column syntax to handling complex session management, relationships, and PostgreSQL-specific features like upserts and JSON column manipulation. By utilizing these standardized patterns, developers can ensure their Python applications maintain high-performance, maintainable, and secure database layers.

주요 기능

01Advanced query patterns including scalars and relationship mapping
02PostgreSQL-specific upsert (ON CONFLICT) logic
03Type-safe session management and dependency injection patterns
04Native JSON column handling and filtering
05Modern SQLAlchemy 2.0+ Declarative Mapping syntax
0618 GitHub stars

사용 사례

01Implementing complex data synchronization and batch upsert logic
02Building robust data layers for FastAPI or Flask web applications
03Designing relational database schemas with type-safe Python models