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

Method list_views

atomic-repository/src/repository/views.rs:437–445  ·  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

435 ///
436 /// A vector of view names.
437 pub fn list_views(&self) -> Result<Vec<String>, RepositoryError> {
438 let txn = self
439 .pristine
440 .read_txn()
441 .map_err(|e| RepositoryError::Database(e.to_string()))?;
442
443 txn.list_views()
444 .map_err(|e| RepositoryError::Database(e.to_string()))
445 }
446
447 /// Return the names of all views whose change-set references `hash`.
448 pub fn views_containing_change(&self, hash: &Hash) -> Result<Vec<String>, RepositoryError> {

Callers 11

view_scopesFunction · 0.45
view_deletion_orphansMethod · 0.45
prepare_migrationFunction · 0.45
stash_listMethod · 0.45
final_schema_censusMethod · 0.45
project_view_kgMethod · 0.45
test_list_viewsFunction · 0.45

Calls 1

read_txnMethod · 0.80

Tested by 3

test_list_viewsFunction · 0.36