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

Method list_views

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

Source from the content-addressed store, hash-verified

334 }
335
336 fn list_views(&self) -> PristineResult<Vec<String>> {
337 let table = self.txn.open_table(VIEWS)?;
338 let mut names = Vec::new();
339 for (k, _) in table.iter()?.filter_map(|r| r.ok()) {
340 names.push(k.value().to_string());
341 }
342 Ok(names)
343 }
344
345 fn get_change_seq(&self, view: &ViewState, change_id: NodeId) -> PristineResult<Option<u64>> {
346 let table = self.txn.open_table(REV_VIEW_CHANGES)?;

Callers 1

get_children_viewsMethod · 0.45

Calls 2

iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected