sea-orm
Installation
SKILL.md
SeaORM
ORM async sobre Tokio. HTTP: axum (DatabaseConnection no State). SQL compile-time / queries explícitas: sqlx. Diesel: diesel. Motor: postgres. Não misture SeaORM e sqlx no mesmo agregado.
Preserve o backend (sqlx-postgres etc.) que o crate já usa. Não introduza SeaORM se o repo já é sqlx/Diesel.
Stack
| Crate | Papel |
|---|---|
sea-orm |
Entities, queries, tx |
sea-orm-migration |
Migrator async |
sea-orm-cli |
generate entity se o time já gerar |