MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / remove_user

Method remove_user

graphlite/src/catalog/providers/security.rs:437–441  ·  view source on GitHub ↗

Remove a user

(&mut self, name: &str)

Source from the content-addressed store, hash-verified

435
436 /// Remove a user
437 fn remove_user(&mut self, name: &str) -> CatalogResult<User> {
438 self.users
439 .remove(name)
440 .ok_or_else(|| CatalogError::NotFound(format!("User '{}' not found", name)))
441 }
442
443 /// Remove a role
444 fn remove_role(&mut self, name: &str, cascade: bool) -> CatalogResult<Role> {

Callers 1

executeMethod · 0.80

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected