# SeaQL/sea-query

🔱 A dynamic SQL query builder for MySQL, Postgres and SQLite

Repository: https://github.com/SeaQL/sea-query
Canonical: https://ross.abutalabs.com/products/sea-query
Homepage: https://www.sea-ql.org
Language: Rust
License: NOASSERTION
License Family: other
Topics: rust, query-builder, mysql, postgresql, sqlite, sql, database, mariadb, postgres, sqlx, rusqlite, hacktoberfest
Last push: 2026-08-12T22:48:51+00:00

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

## Adoption (not part of the score)
Stars 1750, forks 275 (observed 2026-08-28T04:05:31.101210+00:00)

## What it is
SeaQuery is a dynamic SQL query builder for Rust that lets you construct queries and schema statements as abstract syntax trees via an ergonomic API. It supports MySQL, Postgres, and SQLite behind a common interface and serves as the foundation of SeaORM.

## Use cases
- build dynamic SQL queries in Rust
- generate SQL for MySQL, Postgres and SQLite from one API
- construct schema and table definitions programmatically
- compose conditional expressions and filters at runtime
- integrate query building with sqlx, postgres, or rusqlite

## When to choose
- you need runtime-composable SQL without string concatenation
- you want a lightweight, dependency-free query builder in Rust
- you're building on SeaORM or need a common interface across three SQL backends

## When to avoid
- you need MS SQL Server support outside SeaORM X
- you prefer writing raw SQL or using a full ORM directly
- you're not working in Rust

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, orm
- domain: databases, backend, developer-tools
- platform: rust, cross-platform
- tags: sql-query-builder, mysql, postgresql, sqlite, seaorm, type-safe-sql

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:31.101210+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-30T03:28:34.697123+00:00, confidence not recorded.
  - readme: https://github.com/SeaQL/sea-query (fetched 2026-08-28T04:05:31.101210+00:00, sha 5c6e3f67871d)
  - homepage: https://www.sea-ql.org (fetched 2026-08-29T11:06:30.808734+00:00, sha 5037e63b3ba4)
  - site_page: https://www.sea-ql.org/about-us (fetched 2026-08-29T11:06:30.817868+00:00, sha 831c38ca8c52)
  - registry_crates: https://crates.io/api/v1/crates/sea-query (fetched 2026-08-29T11:06:30.819663+00:00, sha 2b272819b6bd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
