# SeaQL/sea-orm

🐚 A powerful relational ORM for Rust

Repository: https://github.com/SeaQL/sea-orm
Canonical: https://ross.abutalabs.com/products/sea-orm
Homepage: https://www.sea-ql.org/SeaORM/
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: mysql, rust, sqlite, orm, postgres, tokio, database, sql, sqlx, mariadb, loco, hacktoberfest
Last push: 2026-08-25T05:39:54+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 2031, "days_push": 8, "days_rel": 21, "gap_med": 14, "n_releases_24m": 38}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 9869, forks 727 (observed 2026-08-28T04:10:37.567366+00:00)

## What it is
SeaORM is an async, dynamic relational ORM for Rust supporting MySQL, PostgreSQL, SQLite, and MariaDB. It provides entity generation, migrations, relations, transactions, and a batteries-included query builder for building web services.

## Use cases
- use an orm in rust with postgres
- generate rust entities from an existing database schema
- manage database migrations in a rust web service
- model one-to-many and many-to-many relations in rust
- build a rest or graphql api backed by sql in rust
- run async crud queries with tokio and sqlx

## When to choose
- you want an async, dynamic ORM in Rust with a familiar ActiveRecord-like developer experience
- you need multi-database support (Postgres, MySQL, MariaDB, SQLite) with migrations and entity generation
- you're building REST, GraphQL, or gRPC services and want batteries-included querying, pagination, and relations

## When to avoid
- you prefer compile-time checked SQL and maximum type safety (consider Diesel)
- you want raw SQL control without an ORM abstraction layer
- your project is not async or does not use tokio/async-std runtimes

## Facets
- artifact type: library
- maturity: stable
- function: orm, database, database-driver
- domain: databases, backend, web-development, developer-tools
- platform: rust, cross-platform
- tags: async, sqlx, tokio, postgres, mysql, sqlite, mariadb, migrations, entity-generation, graphql-support

## Member repositories
- SeaQL/sea-orm (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:37.567366+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:20:22.286750+00:00, confidence not recorded.
  - readme: https://github.com/SeaQL/sea-orm (fetched 2026-08-28T04:10:37.567366+00:00, sha 42b4ec5308d1)
  - homepage: https://www.sea-ql.org/SeaORM/ (fetched 2026-08-29T08:20:21.278905+00:00, sha 35f3df2ec08a)
  - site_page: https://www.sea-ql.org/SeaORM/docs/index (fetched 2026-08-29T08:20:21.281715+00:00, sha 017eb7363967)
  - site_page: https://www.sea-ql.org/SeaORM/docs/1.1.x/index (fetched 2026-08-29T08:20:21.283480+00:00, sha 73a8cd2c0cbc)
  - site_page: https://www.sea-ql.org/SeaORM/docs/1.0.x/index (fetched 2026-08-29T08:20:21.285394+00:00, sha 2f4af6d91538)
  - site_page: https://www.sea-ql.org/SeaORM/docs/0.12.x/index (fetched 2026-08-29T08:20:21.287194+00:00, sha 67f7c5f5d603)
  - site_page: https://www.sea-ql.org/SeaORM/docs/0.11.x/index (fetched 2026-08-29T08:20:21.288993+00:00, sha 3ef802ec0427)
  - site_page: https://www.sea-ql.org/SeaORM/docs/0.10.x/index (fetched 2026-08-29T08:20:21.291046+00:00, sha 536450a9757b)
  - site_page: https://www.sea-ql.org/SeaORM/docs/0.9.x/index (fetched 2026-08-29T08:20:21.292805+00:00, sha 5dcb891a7eb1)
  - site_page: https://www.sea-ql.org/SeaORM/docs/0.8.x/index (fetched 2026-08-29T08:20:21.294475+00:00, sha 2450b8b32238)
- Data as of 2026-08-30T08:39:29.467469+00:00.
