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 launchbadge)

Sqlx Alternatives

Similar projects and alternatives to sqlx

  1. rust

    2,825 sqlx VS rust

    Empowering everyone to build reliable and efficient software.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. rfcs

    688 sqlx VS rfcs

    RFCs for changes to Rust

  4. crates.io

    672 sqlx VS crates.io

    The Rust package registry

  5. book

    655 sqlx VS book

    The Rust Programming Language

  6. bevy

    594 sqlx VS bevy

    A refreshingly simple data-driven game engine built in Rust

  7. Rustlings

    297 sqlx VS Rustlings

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

  8. Cargo

    275 sqlx VS Cargo

    The Rust package manager

  9. SaaSHub

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

    SaaSHub logo
  10. tokio

    219 sqlx VS tokio

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

  11. rust-analyzer

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

  12. sqlc

    182 sqlx VS sqlc

    Generate type-safe code from SQL

  13. actix-web

    180 sqlx VS actix-web

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

  14. Rocket

    162 sqlx VS Rocket

    A web framework for Rust.

  15. axum

    160 sqlx VS axum

    Ergonomic and modular web framework built with Tokio, Tower, and Hyper

  16. diesel

    89 sqlx VS diesel

    A safe, extensible ORM and Query Builder for Rust

  17. sea-orm

    83 sqlx VS sea-orm

    🐚 An async & dynamic ORM for Rust

  18. sled

    39 sqlx VS sled

    the champagne of beta embedded databases

  19. sea-query

    24 sqlx VS sea-query

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

  20. cornucopia

    Generate type-checked Rust from your PostgreSQL.

  21. wrappers

    14 sqlx VS wrappers

    Postgres Foreign Data Wrapper development framework in Rust.

  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 2025-01-25.
  • 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 tale of TimescaleDB, SQLx and testing in Rust
    1 project | dev.to | 2 May 2024
    For PostgreSQL, the most relevent part of the code is here. With this in mind I changed some things around to rely on schemas instead of databases and even simplified some parts of the implementation as this was always meant to be for internal use only..
  • Rust as a general application language
    2 projects | /r/rust | 9 Dec 2023
    What exactly are you missing? I haven't really written "boring corporate backend stuff" in a few years but something like sqlx provides everything I've ever needed there.
  • Hey Rustaceans! Got a question? Ask here (49/2023)!
    9 projects | /r/rust | 5 Dec 2023
    Badges are the little rectangles you typically see at the top of a crate's README: https://github.com/launchbadge/sqlx/blob/main/README.md
  • A new F# compiler feature: graph-based type-checking
    9 projects | news.ycombinator.com | 5 Nov 2023
    SQLX has entered the chat [1].

    [1] https://github.com/launchbadge/sqlx

  • A note from our sponsor - InfluxDB
    www.influxdata.com | 13 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Stats

Basic sqlx repo stats
151
14,687
9.2
6 days ago

launchbadge/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
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Rust is
the 5th most popular programming language
based on number of references?