31 releases (17 stable)

5.0.0 Aug 16, 2025
4.0.0 Mar 9, 2023
3.0.4 Dec 27, 2022
3.0.3 Aug 16, 2022
0.12.1 Mar 1, 2018

#369 in Database implementations

Download history 241/week @ 2025-12-31 106/week @ 2026-01-07 130/week @ 2026-01-14 204/week @ 2026-01-21 307/week @ 2026-01-28 520/week @ 2026-02-04 314/week @ 2026-02-11 196/week @ 2026-02-18 182/week @ 2026-02-25 154/week @ 2026-03-04 203/week @ 2026-03-11 322/week @ 2026-03-18 123/week @ 2026-03-25 158/week @ 2026-04-01 277/week @ 2026-04-08 181/week @ 2026-04-15

779 downloads per month
Used in 69 crates (54 directly)

MPL-2.0 license

215KB
4.5K SLoC

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 are a few built-in ones, but you can implement a new custom datastore.

In-memory

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

indradb-lib = "*"

RocksDB

To use the rocksdb datastore, add this to your Cargo.toml's dependencies section:

indradb-lib = { version = "*", features = ["rocksdb-datastore"] }

Custom datastores

To implement a custom datastore, you need to implement the Datastore trait. 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.

Dependencies

~4–14MB
~288K SLoC