MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / list_views

Method list_views

atomic-core/src/pristine/txn/write/view.rs:31–38  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

29 }
30
31 fn list_views(&self) -> PristineResult<Vec<String>> {
32 let table = self.txn.open_table(VIEWS)?;
33 let mut names = Vec::new();
34 for (k, _) in table.iter()?.filter_map(|r| r.ok()) {
35 names.push(k.value().to_string());
36 }
37 Ok(names)
38 }
39
40 fn get_conflicts(&self, view_id: u64, inode: u64) -> PristineResult<Vec<StoredConflict>> {
41 let table = self.txn.open_table(CONFLICTS)?;

Callers 2

test_view_operationsFunction · 0.45
test_del_viewFunction · 0.45

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by 2

test_view_operationsFunction · 0.36
test_del_viewFunction · 0.36