pub fn parse_auto(input: &str) -> Result<GqlQuery, QueryError>Expand description
Auto-detects SPARQL for SELECT, GQL for MATCH, and otherwise falls back to GQL.
Write-shaped input is rejected before dispatch, including SPARQL prologues.
ยงErrors
Returns QueryError when syntax is invalid, write-shaped, or unsupported.
See crates/khive-query/docs/api/parsing.md for detection and guard behavior.