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

Method execute

graphlite/src/schema/introspection/queries.rs:83–109  ·  view source on GitHub ↗

ROADMAP v0.4.0 - Schema introspection for graph type DDL (see ROADMAP.md §4)

(
        &self,
        query: IntrospectionQuery,
    )

Source from the content-addressed store, hash-verified

81 /// Execute an introspection query
82 #[allow(dead_code)] // ROADMAP v0.4.0 - Schema introspection for graph type DDL (see ROADMAP.md §4)
83 pub fn execute(
84 &self,
85 query: IntrospectionQuery,
86 ) -> Result<IntrospectionResult, ExecutionError> {
87 match query {
88 IntrospectionQuery::ListGraphTypes => self.list_graph_types(),
89 IntrospectionQuery::DescribeGraphType { name, version } => {
90 self.describe_graph_type(&name, version.as_deref())
91 }
92 IntrospectionQuery::ListNodeTypes { graph_type } => self.list_node_types(&graph_type),
93 IntrospectionQuery::ListEdgeTypes { graph_type } => self.list_edge_types(&graph_type),
94 IntrospectionQuery::DescribeNodeType {
95 graph_type,
96 node_label,
97 } => self.describe_node_type(&graph_type, &node_label),
98 IntrospectionQuery::DescribeEdgeType {
99 graph_type,
100 edge_label,
101 } => self.describe_edge_type(&graph_type, &edge_label),
102 IntrospectionQuery::GetVersionHistory { graph_type } => {
103 self.get_version_history(&graph_type)
104 }
105 IntrospectionQuery::GetSchemaStatistics { graph_type } => {
106 self.get_schema_statistics(graph_type.as_deref())
107 }
108 }
109 }
110
111 /// List all graph types in the catalog
112 #[allow(dead_code)] // ROADMAP v0.4.0 - Schema introspection for graph type DDL (see ROADMAP.md §4)

Callers 3

execute_ddl_operationMethod · 0.45
execute_ddl_operationMethod · 0.45
execute_ddl_operationMethod · 0.45

Calls 8

list_node_typesMethod · 0.80
list_edge_typesMethod · 0.80
describe_node_typeMethod · 0.80
describe_edge_typeMethod · 0.80
get_version_historyMethod · 0.80
get_schema_statisticsMethod · 0.80
list_graph_typesMethod · 0.45
describe_graph_typeMethod · 0.45

Tested by

no test coverage detected