Expand description
mongodb-language-model
is a library for parsing the MongoDB language and
returning an abstract syntax tree using pest.rs.
§Example
use mongodb_language_model::*;
let input = r#"{ "$or": [ { "status": "A" }, { "qty": { "$lt": 30 } }] }"#;
let ast = parse(input).unwrap();
Structs§
- Expression
- Expression
Tree Clause - Leaf
Clause - Leaf
Value - List
Operator - Mongo
DbParser - Operator
Expression Operator - Value
Operator