MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / open

Function open

nodedb/tests/document_bitemporal_dml.rs:17–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15use nodedb::engine::sparse::btree::SparseEngine;
16
17fn open() -> (SparseEngine, tempfile::TempDir) {
18 let dir = tempfile::tempdir().unwrap();
19 let e = SparseEngine::open(&dir.path().join("bi.redb")).unwrap();
20 (e, dir)
21}
22
23fn register(sparse: &SparseEngine) -> DocumentEngine<'_> {
24 let mut e = DocumentEngine::new(sparse, 1);

Calls 2

joinMethod · 0.80
pathMethod · 0.45

Tested by

no test coverage detected