-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(dvmql): add initial documentation
- Loading branch information
1 parent
f36d9c4
commit efccd0a
Showing
6 changed files
with
66 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
//! # Query | ||
//! | ||
//! This module containts deserialization logic for query XML files. | ||
|
||
mod deserialization; | ||
pub mod tree; | ||
|
||
use anyhow::Result; | ||
|
||
use self::tree::TreeNode; | ||
use self::{deserialization::Query, tree::TreeNode}; | ||
use crate::dvmql::helpers::read_xml_file; | ||
|
||
/// Helper function for loading a query XML file and building the tree structure. | ||
pub fn load_query_xml(query_path: String) -> Result<TreeNode> { | ||
let query = deserialization::load_query_xml(query_path)?; | ||
let query: Query = read_xml_file(query_path)?; | ||
let tree = tree::build_tree(query)?; | ||
Ok(tree) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters