ROADMAP v0.4.0 - Schema introspection for graph type DDL (see ROADMAP.md §4)
(
&self,
query: IntrospectionQuery,
)
| 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) |
no test coverage detected