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

Method execute

graphlite/src/catalog/manager.rs:81–90  ·  view source on GitHub ↗

Execute operation on specific catalog This is the main entry point for all catalog operations. The operation is routed to the appropriate catalog provider based on the catalog name. # Arguments `catalog_name` - Name of the catalog to execute the operation on `operation` - The catalog operation to execute # Returns `Ok(CatalogResponse)` with the operation result `Err(CatalogError::CatalogNotFoun

(
        &mut self,
        catalog_name: &str,
        operation: CatalogOperation,
    )

Source from the content-addressed store, hash-verified

79 /// * `Err(CatalogError::CatalogNotFound)` if catalog doesn't exist
80 /// * `Err(CatalogError)` if the operation fails
81 pub fn execute(
82 &mut self,
83 catalog_name: &str,
84 operation: CatalogOperation,
85 ) -> CatalogResult<CatalogResponse> {
86 self.registry
87 .get_mut(catalog_name)
88 .ok_or_else(|| CatalogError::CatalogNotFound(catalog_name.to_string()))?
89 .execute(operation)
90 }
91
92 /// Execute a read-only query on a catalog
93 ///

Callers 10

set_user_passwordMethod · 0.45
list_schemasMethod · 0.45
list_graphsMethod · 0.45
list_graph_typesMethod · 0.45
list_rolesMethod · 0.45
list_usersMethod · 0.45
authenticate_userMethod · 0.45
queryMethod · 0.45
create_entityMethod · 0.45
list_entitiesMethod · 0.45

Calls 1

get_mutMethod · 0.80

Tested by

no test coverage detected