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

Method list_views

atomic-repository/src/repository/views.rs:413–421  ·  view source on GitHub ↗

List all views in the repository. # Returns A vector of view names.

(&self)

Source from the content-addressed store, hash-verified

411 ///
412 /// A vector of view names.
413 pub fn list_views(&self) -> Result<Vec<String>, RepositoryError> {
414 let txn = self
415 .pristine
416 .read_txn()
417 .map_err(|e| RepositoryError::Database(e.to_string()))?;
418
419 txn.list_views()
420 .map_err(|e| RepositoryError::Database(e.to_string()))
421 }
422
423 /// Return the names of all views whose change-set references `hash`.
424 pub fn views_containing_change(&self, hash: &Hash) -> Result<Vec<String>, RepositoryError> {

Callers 6

kg_enrich_viewsMethod · 0.45
is_file_only_on_viewFunction · 0.45
test_list_viewsFunction · 0.45

Calls 1

read_txnMethod · 0.80

Tested by 2

test_list_viewsFunction · 0.36