Skip to main content

Crate khive_query

Crate khive_query 

Source
Expand description

Backend-agnostic GQL/SPARQL parsing and SQL compilation.

Re-exports§

pub use ast::GqlQuery;
pub use ast::QueryValue;
pub use ast::ReturnItem;
pub use ast::WhereExpr;
pub use compilers::sql::compile;
pub use compilers::sql::CompileOptions;
pub use compilers::sql::CompiledQuery;
pub use error::QueryError;
pub use language::parse;
pub use language::parse_auto;
pub use language::QueryLanguage;
pub use validate::validate;
pub use validate::validate_pattern_shape;
pub use validate::validate_with_warnings;
pub use validate::MAX_DEPTH;

Modules§

ast
GQL abstract syntax tree.
compilers
SQL compilation backend for GQL ASTs.
error
Query-layer error types for the GQL/SPARQL parse and compile pipeline.
language
Query language detection and dispatch.
parsers
GQL and SPARQL parsers that produce a shared GqlQuery AST.
validate
AST validation: relation normalization, namespace guard, depth cap.