pub fn query(q: &str) -> Result<()>Expand description
Validate a GQL query string.
§Validation Rules
- Query must not be empty
- Query must not exceed MAX_QUERY_LENGTH bytes
- Query must be valid UTF-8 (enforced by Rust’s String type)
§Examples
use geode_client::validate;
assert!(validate::query("MATCH (n) RETURN n").is_ok());
assert!(validate::query("").is_err());