Source: https://seerepo.com/compare/transact-rs/sqlx/vs/unionlabs/union
Markdown source: https://seerepo.com/compare/transact-rs/sqlx/vs/unionlabs/union.md
Description: sqlx and union share 7 technologies: sqlx, sqlx-postgres, Postgres, SQLite, Tokio, console, and tracing. Both are written in Rust.

# sqlx vs union

sqlx and union share 7 technologies: sqlx, sqlx-postgres, Postgres, SQLite, Tokio, console, and tracing. Both are written in Rust.

- [transact-rs/sqlx](https://seerepo.com/r/transact-rs/sqlx): 🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
- [unionlabs/union](https://seerepo.com/r/unionlabs/union): The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

## What they share and what sets them apart

- In common: sqlx, sqlx-postgres, Postgres, SQLite, Tokio, console, tracing
- Only in sqlx: sqlx-core, sqlx-mysql, sqlx-sqlite, libsqlite3-sys, MySQL, hashlink, smol, dialoguer, hkdf, hmac, log
- Only in union: net/http, axum, tower, Gorilla, moka, wasmtime, Svelte, SvelteKit, Supabase, @effect/platform, Ratatui, crossterm, ed25519-dalek, schemars, tracing-subscriber, github.com/rs/zerolog, tracing-opentelemetry, OpenTelemetry, opentelemetry-otlp, Tailwind CSS, tailwind-merge, rehype-stringify, remark, remark-parse, unified, vfile, @effect/opentelemetry

## Side by side

| | sqlx | union |
|---|---|---|
| Size | 84,822 lines written, 369 code files | 468,416 lines written, 1,841 code files |
| Who writes it | 0% of its commits signed by AI. With Claude Code | 0% of its commits signed by AI. With CodeRabbit |
| Activity | Last push October 31, 2026, 2,721 commits, 17,631 stars | Last push July 25, 2026, 13,299 commits, 73,725 stars |
| Tests | 60 test files. 3% of its code files have a test that imports them | 120 test files. 10.4% of its code files have a test that imports them |

- Size: Lines written by people and agents, without generated ones; code files, without tests.
- Who writes it: A commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
- Activity: From GitHub and its history, on the day SeeRepo read it.
- Tests: The files that test the code, and the share of code files a test imports.

## Frequently asked questions

### Which is bigger, sqlx or union?

union, with 468,416 lines written; sqlx has 84,822.

The proof: [unionlabs/union's code at commit 031785b](https://github.com/unionlabs/union/tree/031785bb6dc6b957c624e62bc64c184409c97d7b)

### Which has more GitHub stars, sqlx or union?

union, with 73,725 stars; sqlx has 17,631.

The proof: [unionlabs/union on GitHub](https://github.com/unionlabs/union)

### Which has more tests, sqlx or union?

union, with 120 test files; sqlx has 60.

The proof: [unionlabs/union's code at commit 031785b](https://github.com/unionlabs/union/tree/031785bb6dc6b957c624e62bc64c184409c97d7b)

### Which was updated more recently, sqlx or union?

sqlx: its last push was on October 31, 2026, and union's on July 25, 2026.

The proof: [transact-rs/sqlx's commits on GitHub](https://github.com/transact-rs/sqlx/commits)

## Sources

- transact-rs/sqlx: Read on November 6, 2026, at commit 7908fe7 (https://github.com/transact-rs/sqlx/tree/7908fe79fabc816ce172ac1ac59f6b4bd548ca39)
- unionlabs/union: Read on November 5, 2026, at commit 031785b (https://github.com/unionlabs/union/tree/031785bb6dc6b957c624e62bc64c184409c97d7b)

## What is your repo built with?

Any public repo, with no account: https://seerepo.com/r/owner/repo/built, with the owner and name it has on GitHub.
