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

Method is_valid_query

graphlite/src/coordinator/query_coordinator.rs:634–636  ·  view source on GitHub ↗

Check if a query is syntactically valid This is a convenience method that returns a boolean instead of an error. # Arguments `query` - The GQL query string to check # Returns `true` - Query is syntactically valid `false` - Query has syntax errors # Example ```no_run # use graphlite::QueryCoordinator; # let coordinator = QueryCoordinator::from_path("./mydb").unwrap(); if coordinator.is_valid_qu

(&self, query: &str)

Source from the content-addressed store, hash-verified

632 /// }
633 /// ```
634 pub fn is_valid_query(&self, query: &str) -> bool {
635 self.validate_query(query).is_ok()
636 }
637
638 /// Analyze a query and return metadata without executing it
639 ///

Callers 1

mainFunction · 0.80

Calls 1

validate_queryMethod · 0.80

Tested by

no test coverage detected