sqlx VS sqlc

Compare sqlx vs sqlc and see what are their differences.

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)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
sqlx sqlc
144 169
11,493 10,518
4.1% 5.9%
9.2 9.7
5 days ago 6 days ago
Rust Go
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

sqlx

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 2023-12-09.

sqlc

Posts with mentions or reviews of sqlc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-26.

What are some alternatives?

When comparing sqlx and sqlc you can also consider the following projects:

sqlx - general purpose extensions to golang's database/sql

diesel - A safe, extensible ORM and Query Builder for Rust

GORM - The fantastic ORM library for Golang, aims to be developer friendly

SQLBoiler - Generate a Go ORM tailored to your database schema.

sea-orm - 🐚 An async & dynamic ORM for Rust

ent - An entity framework for Go

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

pgx - PostgreSQL driver and toolkit for Go

jet - Type safe SQL builder with code generation and automatic query result data mapping

rust-postgres - Native PostgreSQL driver for the Rust programming language

PyPika - PyPika is a python SQL query builder that exposes the full richness of the SQL language using a syntax that reflects the resulting query. PyPika excels at all sorts of SQL queries but is especially useful for data analysis.

Squirrel - Fluent SQL generation for golang