DEV.co
Open-Source Databases · gluesql

gluesql

GlueSQL is a Rust library that adds SQL query capabilities to any storage backend—from in-memory to MongoDB to Git repositories. It bridges SQL and NoSQL by supporting both structured schemas and schemaless data, making it useful for applications that need SQL without a traditional database.

Source: GitHub — github.com/gluesql/gluesql
3.1k
GitHub stars
258
Forks
Rust
Primary language
Apache-2.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositorygluesql/gluesql
Ownergluesql
Primary languageRust
LicenseApache-2.0 — OSI-approved
Stars3.1k
Forks258
Open issues205
Latest releasev0.19.0 (2026-01-11)
Last updated2026-07-02
Sourcehttps://github.com/gluesql/gluesql

What gluesql is

A multi-model database engine written in Rust that wraps sqlparser-rs and provides a pluggable storage abstraction layer. Supports both SQL and programmatic Query Builder, handles structured/unstructured data, and ships with reference implementations for Memory, Sled, Redb, JSON, CSV, Parquet, File, Git, and MongoDB backends.

Quickstart

Get the gluesql source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/gluesql/gluesql.gitcd gluesql# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Embedded SQL Layer for Custom Storage

Organizations with proprietary or specialized storage systems (e.g., NoSQL, document stores, or custom key-value engines) can layer SQL semantics on top via GlueSQL's storage trait abstraction, eliminating the need to rewrite query planning and execution.

Multi-Format Data Unification

Applications handling data across CSV, JSON, Parquet, and databases can use GlueSQL to query all formats with a single SQL interface, supporting joins across heterogeneous sources without ETL pipelines.

Schemaless-to-Structured Data Exploration

Data platforms that need to join unstructured logs or documents with structured tables can leverage GlueSQL's native schemaless support (MAP, LIST types) to query mixed schemas in a single statement.

Implementation considerations

  • Storage trait implementation is mandatory; choosing or building a backend (Sled, Redb, custom) is the critical path and complexity driver.
  • Schema flexibility and schemaless support reduce friction for exploratory or evolving data models but require careful null/type handling in application logic.
  • Query Builder API provides escape hatch from SQL text parsing, but SQL text remains primary interface; test coverage for both is advisable.
  • Concurrency model relies on backend support (Shared Memory Storage wraps with RwLock); verify thread-safety guarantees for your storage choice.
  • Version 0.19.0 indicates pre-1.0 status; API stability not guaranteed; pin versions and monitor release notes for breaking changes.

When to avoid it — and what to weigh

  • Production ACID-Heavy Workloads at Scale — Most reference storages (Memory, JSON, CSV, Parquet, File) do not implement full transaction semantics. Only Sled and Redb offer transactions; production ACID requirements at scale require careful backend selection and testing.
  • Demanding Query Performance Optimization Needs — GlueSQL is a library abstraction, not a query optimizer like PostgreSQL or modern data warehouses. Expect no automatic indexing strategies, query planning optimization, or columnar performance tuning—those remain the storage backend's responsibility.
  • Turnkey Multi-Tenant SaaS Database — GlueSQL is not a managed database service; it requires custom storage implementation and operational integration. Using it for a public SaaS without deep Rust expertise and DevOps infrastructure is high risk.
  • Requirement for Out-of-the-Box Enterprise Features — No built-in replication, clustering, backup automation, or role-based access control. These must be implemented at the storage layer or application level.

License & commercial use

Apache License 2.0 (Apache-2.0). A permissive OSI-approved license allowing commercial use, modification, and distribution under standard Apache terms (including liability disclaimers and trademark provisions).

Apache-2.0 permits commercial use, including closed-source derivatives, without royalty or notice requirements. However, ensure downstream storage backends (e.g., any custom implementations) are also commercially licensed. Verify MongoDB and Sled licensing if used. No commercial support or SLA is stated in the GitHub data; refer to gluesql.org or the Discord for support options.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityModerate
DEV.co fitGood
Assessment confidenceHigh
Security considerations

GlueSQL is a query engine, not a database server; security posture depends entirely on storage backend and application integration. No mention of SQL injection mitigation at the GlueSQL layer (sqlparser-rs handles parsing safely, but prepared statements or parameterized query enforcement should be verified). Access control, encryption at rest, and network security are not built-in; implement at storage or application boundary. Git Storage auto-commits data to Git; audit commit history and repository access carefully. Sled and MongoDB backends introduce their own security models; review their documentation.

Alternatives to consider

SQLite / Rusqlite

Simpler embedded SQL database for single-process Rust apps; offers ACID transactions out-of-the-box. Trade-off: fixed schema and no schemaless support; less pluggable for custom storage.

Apache Arrow / DataFusion

Columnar query engine optimized for analytics and multi-format data (Parquet, CSV, JSON). Better for OLAP and distributed compute; lacks NoSQL/schemaless flexibility and requires more operational complexity.

Elasticsearch / OpenSearch

Managed schemaless search and analytics engine with clustering and replication built-in. Better for full-text search and scale; heavier operational footprint and higher cost than a library-based solution.

Software development agency

Build on gluesql with DEV.co software developers

GlueSQL is ideal for Rust teams building embedded databases or querying multi-format data. Our engineers can help design the right storage architecture, evaluate backend options, and integrate GlueSQL into your stack. Contact us for a technical discussion.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

gluesql FAQ

Can I use GlueSQL without writing custom storage code?
Yes. Reference storages (Memory, Sled, Redb, JSON, CSV, Parquet, File, Git, MongoDB) are ready to use. Choose one and initialize it; SQL queries run against that backend. Custom storage is only needed if your data lives in a system not listed.
Does GlueSQL support transactions and ACID guarantees?
Partially. Sled and Redb implement transaction traits; Memory, JSON, CSV, Parquet, and File storages do not. MongoDB support exists but transaction semantics depend on MongoDB version. Verify your backend's guarantees before production use.
Is GlueSQL suitable for a production web service?
It can be, but requires careful design. You must choose a durable, transactional backend (Sled or Redb), implement a network API layer (REST/GraphQL), add monitoring, backups, and disaster recovery. It is not a turnkey solution; compare effort to using PostgreSQL or a managed cloud database.
How does GlueSQL handle query performance at scale?
Query execution speed depends on the storage backend, not GlueSQL's planner. GlueSQL is a semantic layer; it does not auto-optimize or build indexes. For large datasets, pair it with a backend designed for scale (e.g., MongoDB, a custom distributed store) and benchmark query plans carefully.

Software developers & web developers for hire

Need help beyond evaluating gluesql? DEV.co is a software development agency offering software development services and web development for teams of every size. Our software developers and web developers build custom software, web applications, APIs, and open-source databases integrations — and maintain them long-term.

Ready to Add SQL to Your Data Layer?

GlueSQL is ideal for Rust teams building embedded databases or querying multi-format data. Our engineers can help design the right storage architecture, evaluate backend options, and integrate GlueSQL into your stack. Contact us for a technical discussion.