From c3c6b5809109f520f383e1381371d8d04afd0c8e Mon Sep 17 00:00:00 2001 From: Emily Matheys Date: Thu, 13 Jun 2024 12:28:06 +0300 Subject: [PATCH] One file slipped --- src/graph/blocking.rs | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/graph/blocking.rs b/src/graph/blocking.rs index d01f9f9..becdb96 100644 --- a/src/graph/blocking.rs +++ b/src/graph/blocking.rs @@ -130,11 +130,11 @@ impl SyncGraph { /// * `query_string`: The query to run /// /// # Returns - /// A [`QueryBuilder`] object, which when performed will return a [`FalkorResponse`] + /// A [`QueryBuilder`] object, which when performed will return a [`QueryResult`] pub fn query( &mut self, query_string: T, - ) -> QueryBuilder, T> { + ) -> QueryBuilder, T> { QueryBuilder::new(self, "GRAPH.QUERY", query_string) } @@ -150,7 +150,7 @@ impl SyncGraph { pub fn ro_query<'a>( &'a mut self, query_string: &'a str, - ) -> QueryBuilder, &str> { + ) -> QueryBuilder, &str> { QueryBuilder::new(self, "GRAPH.QUERY_RO", query_string) } @@ -194,8 +194,8 @@ impl SyncGraph { feature = "tracing", tracing::instrument(name = "List Graph Indices", skip_all, level = "info") )] - pub fn list_indices(&mut self) -> FalkorResult>> { - ProcedureQueryBuilder::>>::new(self, "DB.INDEXES").execute() + pub fn list_indices(&mut self) -> FalkorResult>> { + ProcedureQueryBuilder::>>::new(self, "DB.INDEXES").execute() } /// Creates a new index in the graph, for the selected entity type(Node/Edge), selected label, and properties @@ -220,7 +220,7 @@ impl SyncGraph { label: &str, properties: &[P], options: Option<&HashMap>, - ) -> FalkorResult> { + ) -> FalkorResult> { // Create index from these properties let properties_string = properties .iter() @@ -254,7 +254,7 @@ impl SyncGraph { "CREATE {idx_type}INDEX FOR {pattern} ON ({}){}", properties_string, options_string ); - QueryBuilder::, String>::new(self, "GRAPH.QUERY", query_str) + QueryBuilder::, String>::new(self, "GRAPH.QUERY", query_str) .execute() } @@ -272,7 +272,7 @@ impl SyncGraph { entity_type: EntityType, label: L, properties: &[P], - ) -> FalkorResult> { + ) -> FalkorResult> { let properties_string = properties .iter() .map(|element| format!("e.{}", element.to_string())) @@ -306,9 +306,8 @@ impl SyncGraph { feature = "tracing", tracing::instrument(name = "List Graph Constraints", skip_all, level = "info") )] - pub fn list_constraints(&mut self) -> FalkorResult>> { - ProcedureQueryBuilder::>>::new(self, "DB.CONSTRAINTS") - .execute() + pub fn list_constraints(&mut self) -> FalkorResult>> { + ProcedureQueryBuilder::>>::new(self, "DB.CONSTRAINTS").execute() } /// Creates a new constraint for this graph, making the provided properties mandatory