14 releases (breaking)

✓ Uses Rust 2018 edition

0.22.0 Aug 13, 2019
0.21.0 Nov 17, 2018
0.20.0 Nov 8, 2018
0.15.0 Jun 11, 2018
0.12.1 Mar 1, 2018

#87 in Database interfaces

Download history 37/week @ 2019-08-08 7/week @ 2019-08-15 142/week @ 2019-08-22 34/week @ 2019-08-29 44/week @ 2019-09-05 23/week @ 2019-09-12 101/week @ 2019-09-19 17/week @ 2019-09-26 17/week @ 2019-10-03 64/week @ 2019-10-17 88/week @ 2019-10-24 30/week @ 2019-10-31 2/week @ 2019-11-07 32/week @ 2019-11-14

178 downloads per month
Used in 2 crates

MPL-2.0 license


IndraDB library Docs

This is the IndraDB library. Most users can use the server, which provides higher-level methods for working with IndraDB databases. Linking directly against the library would be necessary if you want to make a new datastore implementation, or if you want to work at a lower-level than the server affords.

Pluggable datastores

IndraDB stores graph data in datastores. Datastores are pluggable: there is built in support for in-memory-only and rocksdb, but you can implement a new custom datastore.


To use the in-memory datastore, add this to your Cargo.toml:

git = "https://github.com/indradb/indradb"


To use the rocksdb datastore, add this to your Cargo.toml:

git = "https://github.com/indradb/indradb"
features = ["rocksdb-datastore"]

Custom datastores

To implement a custom datastore, you need to implement the Datastore and Transaction traits. See the in-memory datastore for a simpler example implementation. To help you get off the ground faster, there is a standard test suite that can execute against any datastore and check for common bugs and regressions. See the in-memory datastore tests for an implementation of it.

Running tests

Run ./test.sh.

Running benchmarks

Run ./test.sh --bench.


~135K SLoC