sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by transact-rs)

Sqlx Alternatives

Similar projects and alternatives to sqlx

  1. rust

    2,970 sqlx VS rust

    Empowering everyone to build reliable and efficient software.

  2. AppSignal

    AppSignal knows why the f*#k it crashed. Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.

    AppSignal logo
  3. rfcs

    704 sqlx VS rfcs

    RFCs for changes to Rust

  4. book

    673 sqlx VS book

    The Rust Programming Language

  5. bevy

    606 sqlx VS bevy

    A refreshingly simple data-driven game engine built in Rust

  6. Rustlings

    301 sqlx VS Rustlings

    :crab: Small exercises to get you used to reading and writing Rust code!

  7. Cargo

    288 sqlx VS Cargo

    The Rust package manager

  8. tokio

    235 sqlx VS tokio

    A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. rust-analyzer

    Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)

  11. litestream

    Streaming replication for SQLite.

  12. sqlc

    194 sqlx VS sqlc

    Generate type-safe code from SQL

  13. actix-web

    181 sqlx VS actix-web

    Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

  14. axum

    173 sqlx VS axum

    HTTP routing and request-handling library for Rust that focuses on ergonomics and modularity

  15. Rocket

    165 sqlx VS Rocket

    A web framework for Rust.

  16. diesel

    90 sqlx VS diesel

    A safe, extensible ORM and Query Builder for Rust

  17. sea-orm

    89 sqlx VS sea-orm

    🐚 A powerful relational ORM for Rust

  18. SQLPage

    46 sqlx VS SQLPage

    Fast SQL-only data application builder. Automatically build a UI on top of SQL queries.

  19. sled

    41 sqlx VS sled

    the champagne of beta embedded databases

  20. sea-query

    26 sqlx VS sea-query

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

  21. cornucopia

    22 sqlx VS cornucopia

    Generate type-checked Rust from your PostgreSQL.

  22. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better sqlx alternative or higher similarity.

sqlx discussion

Log in or Post with

sqlx reviews and mentions

Posts with mentions or reviews of sqlx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2026-07-04.
  • What ORMs have taught me: just learn SQL (2014)
    7 projects | news.ycombinator.com | 4 Jul 2026
    If you use Rust and like to write SQL, check out SQLx: https://github.com/transact-rs/sqlx

    Or diesel-rs for ORM

  • SQLite is all you need for durable workflows
    12 projects | news.ycombinator.com | 29 May 2026
    I don’t like strict tables, because it conflates two concerns, with one somewhat good and one distinctly bad effect (in my assessments).

    The somewhat good: it gets rid of most of the weak typing. It still coerces, in line with other SQL databases, but at least a column will only store values of one type. Personally I’d prefer to opt out of the coercion. And I don’t think most ways of writing SQL (in applications especially, but also manually) will ever actually trigger the strict differences. So it doesn’t feel like it’s actually particularly useful.

    The distinctly bad: you’re limited to six datatype names. You may well now want external documentation or load-bearing comments in your schema, and your application code may be hobbled, if it liked to infer types based on the datatype name. For example, in sqlx, SQLite datatype BOOLEAN can automatically map to Rust type bool <https://github.com/transact-rs/sqlx/blob/75bc0487eb661da811b...>. Without that, you have to resort to a variety of less-pleasant techniques, such as selecting `done as "done: bool"` or overriding things in sqlx.toml.

    I really, really wish they’d implement some form of CREATE TYPE and let that work with strict tables. If I could `CREATE TYPE BOOLEAN FROM INTEGER` and such, I’d be all in on strict tables.

  • Building a Job Queue in Rust: Persistent Tasks With Retry Logic
    1 project | dev.to | 17 Apr 2026
    SQL Alchemy for Rust for database interaction.
  • SQLx – The Rust SQL Toolkit
    16 projects | news.ycombinator.com | 25 Jul 2025
    // https://github.com/launchbadge/sqlx/issues/367#issuecomment-...
  • You Probably Don't Need Query Builders
    5 projects | news.ycombinator.com | 25 Jan 2025
    Because type correctness does not imply branch correctness. SQL has side effects of interpretation, and any string/query builder that is not aware of grammatical implications should be avoided in my opinion.

    Check the query builder of sqlx [1]

    [1] https://github.com/launchbadge/sqlx/blob/main/sqlx-core/src/...

  • Serverless semantic search - AWS Lambda, AWS Bedrock, Neon
    2 projects | dev.to | 21 Dec 2024
    For DB schema and migrations, I use sqlx-cli.
  • First Impressions of AWS DSQL with Lambda and Rust
    3 projects | dev.to | 7 Dec 2024
    I tend to default to as few as possible, which is why when working with SQL and Rust, I almost always reach for SQLx. Setting up SQLx with AWS DSQL requires using the v4 Signature signing of my credentials as fetched from my AWS configuration. I do this work in my main function so that I can reuse the Postgres Pool in my handler without having to establish this connection outside of the Cold Start initializing cycle. That setup is reflected in the below code.
  • Sqlc: Compile SQL to type-safe code
    15 projects | news.ycombinator.com | 8 Sep 2024
    This looks like a less ergonomic version of Rust's SQLx (https://github.com/launchbadge/sqlx) but a more robust version of TypeScript's sqlx-ts (https://jasonshin.github.io/sqlx-ts/). Sqlc seems to copy the latter's unfortunate lack of inline SQL statements. Still, seems promising.
  • Build your own SQLite with Rust, Part 1
    1 project | news.ycombinator.com | 17 Aug 2024
    SQLx seems to do some form of this. though what you're suggesting may remove the build time dependency on "connecting" to a SQLite database.

    "SQLx supports compile-time checked queries. It does not, however, do this by providing a Rust API or DSL (domain-specific language) for building queries. Instead, it provides macros that take regular SQL as input and ensure that it is valid for your database. The way this works is that SQLx connects to your development DB at compile time to have the database itself verify (and return some info on) your SQL queries."

    https://github.com/launchbadge/sqlx

  • SQLx: Async, pure Rust SQL crate, compile-time checked queries without a DSL
    1 project | news.ycombinator.com | 22 Jul 2024
  • A note from our sponsor - SaaSHub
    www.saashub.com | 9 Aug 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic sqlx repo stats
158
17,368
8.3
30 days ago

transact-rs/sqlx is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of sqlx is Rust.


Sponsored
AppSignal knows why the f*#k it crashed.
Stop vibe-debugging. Every exception, every backtrace, grouped so you see patterns, not noise.
www.appsignal.com