gluesql
GlueSQL is quite sticky. It sticks to anything.
What is gluesql?
GlueSQL is quite sticky. It sticks to anything.
Overview of gluesql
What it is
GlueSQL is an embeddable, multi-model SQL database engine written in Rust. It combines SQL with the flexibility to work across different data models and storage environments. It is also available for JavaScript applications in the browser and Node.js. GlueSQL brings SQL to your application's storage, allowing you to use a provided storage backend or implement a custom adapter to query existing data without moving it into a separate database. GlueSQL handles SQL parsing, planning, and execution.
Key features
- Choose a storage backend: use in-memory storage, embedded databases, local files, object stores, or external databases.
- Work with flexible data: query schema-defined and schemaless tables together, including MAP and LIST values.
- Choose a query interface: write SQL or compose queries with the Rust Query Builder, both backed by the same engine.
- Supports both schema-defined (structured) and schemaless (unstructured) data without requiring every table to have a predefined schema.
- Provides reference storage implementations for in-memory data, embedded databases, local files, object stores, and external databases.
- Allows creating custom storage adapters through the
StoreandStoreMuttraits.
Use cases
GlueSQL can be used for persistent embedded databases (e.g., Redb), persistent databases on S3 or Cloudflare R2 (e.g., SlateDB), querying existing MongoDB or Redis data, temporary data, tests, and prototypes, querying CSV, JSON, or Parquet files, lightweight filesystem persistence, version-controlled data, queries across multiple storage backends, and browser or JavaScript applications.
Getting started
bashcargo add gluesql``````bashnpm install gluesqlFor browser (CDN):jsimport { gluesql } from 'https://cdn.jsdelivr.net/npm/gluesql/gluesql.js';
License and pricing
This project is licensed under the Apache License, Version 2.0. It is open source.
Based on the project's public README and repository metadata.