Rust Database

Open-source Rust projects categorized as Database

Top 23 Rust Database Projects

  • GitHub repo MeiliSearch

    Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine

    Project mention: How to query 100k documents | | 2021-04-08

    For a free alternative that's most similar to Algolia (i.e. instant search), check out Meilisearch.

  • GitHub repo sonic

    🦔 Fast, lightweight & schema-less search backend. An alternative to Elasticsearch that runs on a few MBs of RAM.

    Project mention: AWS releases forked Elasticsearch code. Announces new name: OpenSearc | | 2021-04-12
  • GitHub repo tikv

    Distributed transactional key-value database, originally created to complement TiDB

    Project mention: Rusticles #10 - Wed Sep 09 2020 | | 2020-09-09

    tikv/tikv (Rust): Distributed transactional key-value database, originally created to complement TiDB

  • GitHub repo diesel

    A safe, extensible ORM and Query Builder for Rust

    Project mention: How to read this syntax | | 2021-03-11

    let results = posts .filter(published.eq(true)) .limit(5) .load::(&connection) .expect("Error loading posts"); Link to full source

  • GitHub repo sled

    the champagne of beta embedded databases

    Project mention: Protocol buffers database, a Key-Value database on the wire | | 2021-03-17

    There are a lot of modern approaches like the BW-Tree which is well documented by a Microsoft research paper. Also something like sled-db, which essentially utilizes IO_DIRECT to read straight into a buffer, skipping the page cache, and therefore the db creates it's own page cache where the live pages are actually deserialized representations of the data. There's a lot of other cool stuff, like latch free tree structure for indexing, and scattering pages across sequentially accessed logs, where the only lock required is one to ensure write order into a queue. There's a lot of neat approaches to developing performant datastorage systems for modern hardware, and LSM-Tree type storage engines like level or rocks db only scratch the surface of potential.

  • GitHub repo materialize

    Materialize simplifies application development with streaming data. Incrementally-updated materialized views - in PostgreSQL and in real time. Materialize is powered by Timely Dataflow. (by MaterializeInc)

    Project mention: Ask HN: What under-the-radar technology are you super excited about? | | 2021-04-12

    Materialize ( Although a bit known here, my coworkers never heard about it. I think it's going to be a game changer.

  • GitHub repo rust-postgres

    Native PostgreSQL driver for the Rust programming language

    Project mention: Hey Rustaceans! Got an easy question? Ask here (12/2021)! | | 2021-03-22


  • GitHub repo redis-rs

    Redis library for rust

    Project mention: Trying to utilize sqlx with postgresql and expecting performance on par with jdbc 😀. How do you guys do prepared statement, arg/param setting, batch insertions etc? The documentation doesn’t take me anywhere near that. | | 2021-03-28
  • GitHub repo PumpkinDB

    Immutable Ordered Key-Value Database Engine

  • GitHub repo indradb

    A graph database written in rust

    Project mention: IndraDB: A graph database written in rust | | 2021-02-02 and

  • GitHub repo exonum

    An extensible open-source framework for creating private/permissioned blockchain applications

  • GitHub repo rusqlite

    Ergonomic bindings to SQLite for Rust

    Project mention: SQLite 3.35: math functions, materialized CTEs, RETURNING, and DROP COLUMN | | 2021-03-13

    I see a tracking issue for rusqlite (diesel dependency) to support sqlite 3.35 but I don't think there's a tracking issue for it in diesel itself yet.

  • GitHub repo r2d2

    A generic connection pool for Rust

  • GitHub repo rust-rocksdb

    rust wrapper for rocksdb

    Project mention: Portal - full-text search web service | | 2021-04-05

    I just released portal a full-text search web service that is a competitor for ElasticSearch and MeiliSearch written in Rust. It is simple, blazing fast, and under 500 LOC! Portal supports 87 natural languages, JWTs, SSL, and JSON clients. It is built on Sonic, Broker, Tide, and RocksDB.

  • GitHub repo rust-mysql-simple

    Mysql client library implemented in rust.

  • GitHub repo barrel

    🛢 A database schema migration builder for Rust

    Project mention: Is there any alternative to Diesel that supports switching between DBMS? | | 2021-02-05

    I don't know about alternatives, but I think the SQL in the Diesel Getting Started is just migrations. If you want to write those in Rust, Diesel has support for Barrel (setup guide). Not production-ready though.

  • GitHub repo rustbreak

    A simple, fast and easy to use self-contained single file storage for Rust

    Project mention: Hey Rustaceans! Got an easy question? Ask here (15/2021)! | | 2021-04-12

    The closest I could find so far is (but I don't think that does incremental updates)

  • GitHub repo cdrs

    Cassandra DB native client written in Rust language. Find 1.x versions on Looking for an async version? - Check WIP

  • GitHub repo rs-es

    A Rust client for the ElasticSearch REST API

  • GitHub repo mysql_async

    Asyncronous Rust Mysql driver based on Tokio.

    Project mention: Hey Rustaceans! Got an easy question? Ask here (1/2021)! | | 2021-01-06

    I'm way ahead of you. I found out about it because I noticed the impl Clone for Pool at the bottom and clicked the [src] button to verify that the pool was shared among clones.

  • GitHub repo rustorm

    an orm for rust

  • GitHub repo deuterium-orm

    Fully typed SQL query builder for Rust [deprecated]

  • GitHub repo mysql-proxy-rs

    A highly scalable MySQL Proxy framework written in Rust

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-04-12.


What are some of the best open-source Database projects in Rust? This list will help you:

Project Stars
1 MeiliSearch 13,121
2 sonic 11,098
3 tikv 9,089
4 diesel 6,679
5 sled 4,607
6 materialize 2,572
7 rust-postgres 2,109
8 redis-rs 1,894
9 PumpkinDB 1,221
10 indradb 1,059
11 exonum 1,041
12 rusqlite 1,034
13 r2d2 858
14 rust-rocksdb 838
15 rust-mysql-simple 417
16 barrel 415
17 rustbreak 320
18 cdrs 315
19 rs-es 213
20 mysql_async 208
21 rustorm 206
22 deuterium-orm 167
23 mysql-proxy-rs 146