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

Method list_views

atomic-core/src/pristine/txn/read.rs:356–363  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

354 }
355
356 fn list_views(&self) -> PristineResult<Vec<String>> {
357 let table = self.txn.open_table(VIEWS)?;
358 let mut names = Vec::new();
359 for (k, _) in table.iter()?.filter_map(|r| r.ok()) {
360 names.push(k.value().to_string());
361 }
362 Ok(names)
363 }
364
365 fn get_conflicts(&self, view_id: u64, inode: u64) -> PristineResult<Vec<StoredConflict>> {
366 let table = self.txn.open_table(CONFLICTS)?;

Callers 1

get_children_viewsMethod · 0.45

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected