30 releases (16 stable)

4.0.0 Mar 9, 2023
3.0.4 Dec 27, 2022
3.0.3 Aug 16, 2022
3.0.2 Jun 17, 2022
0.12.1 Mar 1, 2018

#42 in Database implementations

Download history 259/week @ 2023-08-16 159/week @ 2023-08-23 104/week @ 2023-08-30 297/week @ 2023-09-06 153/week @ 2023-09-13 81/week @ 2023-09-20 160/week @ 2023-09-27 127/week @ 2023-10-04 185/week @ 2023-10-11 199/week @ 2023-10-18 249/week @ 2023-10-25 216/week @ 2023-11-01 215/week @ 2023-11-08 244/week @ 2023-11-15 310/week @ 2023-11-22 200/week @ 2023-11-29

973 downloads per month
Used in 67 crates (53 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

~3–17MB
~227K SLoC