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

Method snapshot_views

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

Source from the content-addressed store, hash-verified

499 }
500
501 fn snapshot_views(&self) -> PristineResult<Vec<(String, ViewState)>> {
502 let table = self.txn.open_table(VIEWS)?;
503 let mut rows = Vec::new();
504 for entry in table.iter()? {
505 let (name, value) = entry?;
506 rows.push((
507 name.value().to_string(),
508 deserialize_view_state(value.value())?,
509 ));
510 }
511 rows.sort_by(|left, right| left.0.cmp(&right.0));
512 Ok(rows)
513 }
514
515 fn list_views(&self) -> PristineResult<Vec<String>> {
516 Ok(self

Callers 5

list_viewsMethod · 0.45
rebuild_set_id_indexMethod · 0.45

Calls 5

deserialize_view_stateFunction · 0.85
valueMethod · 0.80
iterMethod · 0.45
pushMethod · 0.45
cmpMethod · 0.45

Tested by

no test coverage detected