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

Function open_engine_with_threshold

nodedb/tests/bitemporal_array_gdpr.rs:62–68  ·  view source on GitHub ↗
(dir: &TempDir, flush_threshold: usize)

Source from the content-addressed store, hash-verified

60}
61
62fn open_engine_with_threshold(dir: &TempDir, flush_threshold: usize) -> ArrayEngine {
63 let mut cfg = ArrayEngineConfig::new(dir.path().to_path_buf());
64 cfg.flush_cell_threshold = flush_threshold;
65 let mut e = ArrayEngine::new(cfg).unwrap();
66 e.open_array(aid(), schema(), SCHEMA_HASH).unwrap();
67 e
68}
69
70fn put_cell(e: &mut ArrayEngine, x: i64, v: i64, sys: i64, lsn: u64) {
71 e.put_cells(

Calls 4

open_arrayMethod · 0.80
aidFunction · 0.70
schemaFunction · 0.70
pathMethod · 0.45

Tested by

no test coverage detected