Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

sqlalchemy-patterns

النجوم٨
التفرعات٠
آخر تحديث١٦ يونيو ٢٠٢٦ في ١٥:١٩

SQLAlchemy 2.0 ORM patterns for FastAPI: declarative mapped classes with Mapped/mapped_column, async session with AsyncSession, relationships with explicit lazy loading, Alembic migration workflow integration. Used by fastapi-architect (model definitions) and alembic-specialist (column type finalization and migration generation). Activated automatically by fastapi-plugin/stack.md. Use this skill to: - Write SQLAlchemy 2.0 declarative models with Mapped[T] annotations and mapped_column(). - Manage async database sessions with AsyncSession and async_sessionmaker. - Define relationships with explicit lazy loading strategy (lazy="selectin" or "raise"). - Integrate with Alembic for migration autogeneration. Do NOT use this skill for: - FastAPI routing and Pydantic schemas — see fastapi-plugin:fastapi-conventions. - Alembic migration execution (that's alembic-specialist's job) — this skill covers definitions. - Python idioms — see python-foundation:python-conventions.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

SKILL.md
readonly