qbey
qbey: A flexible Rust query builder with bind values and safeguards for unfiltered writes. Ranked #18 of 51 in Database Query Builders by our editors (7.2/10); pricing: Free plan; best for rust teams needing flexible query composition.
At a glance
- Editor score7.2 / 10
- PricingFree plan
- Best forRust teams needing flexible query composition
- Free planYes
- Paid fromNone
- Type safetyOptional
- Facts checked4 Oct 2026
Where it wins
- Composes SELECT, INSERT, UPDATE, and DELETE statements with conditional clauses
- Supports joins, grouping, unions, subqueries, and bind parameters
- Blocks UPDATE and DELETE statements without WHERE conditions by default
Where it doesn't
- Generates SQL but does not execute queries
- Async queries are not supported
- MySQL-specific syntax is provided through an extension
Our verdict on qbey
qbey is an open-source Rust library for composing SQL statements, aimed at developers who want to build queries dynamically rather than execute them through the library. It covers SELECT, INSERT, UPDATE, and DELETE, with conditional WHERE clauses and support for joins, grouping, HAVING, unions, and subqueries. Its optional schema macro generates typed, qualified column accessors for compile-time checked references. For Rust teams working directly with SQL and database drivers, qbey offers a focused way to assemble statements while retaining control over execution.
The query-building features extend beyond basic filters. qbey generates SQL text alongside bind parameters, and a RawSql wrapper provides an escape hatch for embedding SQL expressions. A dialect trait lets developers customize placeholder styles and identifier quoting; an optional MySQL extension adds MySQL-specific syntax. The library is driver-agnostic, with integrations or documented testing involving sqlx, rusqlite, tokio-postgres, and postgres. These capabilities suit projects that need to compose queries across different driver contexts, though teams seeking a builder that also runs queries will need a separate execution layer.
A notable safety measure guards UPDATE and DELETE statements against missing WHERE conditions by default, reducing the risk of unintentionally broad writes. qbey is open source, self-hosted, and available for Linux, macOS, and Windows, with community support. The published category details identify Rust as its language and type safety as optional. This makes qbey a reasonable fit for solo developers and small or mid-market Rust teams that value flexible SQL composition and can manage their own execution and support. Teams requiring built-in async query execution or broad, ready-made dialect coverage should consider alternatives.
Your product? Our editors can test qbey in depth and publish a review, labelled as paid · from $99/mo →
qbey pricing
qbey fact sheet
| Free plan | Yes |
|---|---|
| Paid from | None |
| Languages | Rust |
| SQL dialects | Custom dialects; MySQL extension |
| Type safety | Optional |
| Async queries | No |
| Raw SQL support | Yes |
| Compile without execution | Yes |
| Deployment | Self-hosted |
| Platforms | Linux, macOS, Windows |
| Support | Community |
| Built for | Solo, Small business, Mid-market (editorial estimate) |
| Integrations | 4 integrations: sqlx, rusqlite, tokio-postgres, postgres |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 4 Oct 2026 |
qbey integrations
qbey lists 4 integrations on its own site.
- sqlx
- rusqlite
- tokio-postgres
- postgres
Alternatives to qbey
- jOOQA fluent SQL framework for JVM teams that want generated, type-safe database access.9.3
- SQLAlchemySQL construction, ORM, and database services for Python applications.9.1
- JetBrains ExposedA free, open-source Kotlin library with a type-safe SQL DSL and JDBC and R2DBC access.9.0
Used qbey? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used qbey for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
qbey is listed in our Database Query Builders directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/qbey/"><img src="https://www.itechguides.com/best/badge/qbey.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. How we rank.
Last updated · How we research and update
