# SQLAlchemy Development Guidelines

> Objective: Define standards for using SQLAlchemy 2.x safely and efficiently in Python applications, covering engine setup, ORM models, async patterns, querying, transactions, and migrations.

::: tip Source File
View the full rule: [`.agent/rules/sqlalchemy.md`](https://github.com/snowdreamtech/template/blob/main/.agent/rules/sqlalchemy.md)
:::

## Sections

- 1. Engine, Session & Async Setup
- 1. ORM Models (SQLAlchemy 2.x Declarative Style)
- 1. Querying (SQLAlchemy 2.x Style)
- 1. Transactions & Bulk Operations
- 1. Migrations, Testing & Performance
