#holochain #persistence #lmdb #cas #eav

nightly holochain_persistence_lmdb

persistence for content addressable storage and entity attribute value indexes backed by pickledb-rs

10 releases

0.0.18 Mar 10, 2020
0.0.17 Feb 13, 2020
0.0.13 Jan 17, 2020
0.0.11 Nov 11, 2019
0.0.10 Oct 16, 2019

#1396 in Database interfaces

Download history 11/week @ 2023-06-02 27/week @ 2023-06-16 20/week @ 2023-06-23 17/week @ 2023-06-30 47/week @ 2023-07-07 6/week @ 2023-07-14 9/week @ 2023-07-21 7/week @ 2023-07-28 8/week @ 2023-08-04 18/week @ 2023-08-11 10/week @ 2023-08-18 16/week @ 2023-08-25 6/week @ 2023-09-01 27/week @ 2023-09-08 9/week @ 2023-09-15

58 downloads per month
Used in holochain_conductor_lib


2.5K SLoC


Project Chat

Twitter Follow

License: Apache-2.0


LMDB persistence implementation for holochain. Provides content addressable storage (CAS) and entity attribute value (index) using LMDBs's key/value store.


Add holochain_persistence_lmdb crate to your Cargo.toml. Below is a stub for creating a storage unit and adding some content.

use holochain_persistence_lmdb::cas::LmdbStorage;
use tempfile::tempdir;

pub fn init() -> LmdbStorage {
  let dir = tempdir().expect("Could not create a tempdir for CAS.");
  let store = LmdbStorate::new(dir.path()).unwrap();
  store.add(<some_content>).expect("added some content");


Holochain is an open source project. We welcome all sorts of participation and are actively working on increasing surface area to accept it. Please see our contributing guidelines for our general practices and protocols on participating in the community.


License: Apache-2.0

Copyright (C) 2019, Holochain Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at


Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


~329K SLoC