scyllax-parser (sɪl-æks)
A parser for CQL queries.
Usage
use ;
let query = try_from;
assert_eq!;
A parser for CQL queries.
use scyllax_parser::{Column, Query, SelectQuery};
let query = Query::try_from("select id, name from person");
assert_eq!(
query,
Ok(Query::Select(SelectQuery {
table: "person".to_string(),
columns: vec![
Column::Identifier("id".to_string()),
Column::Identifier("name".to_string()),
],
condition: vec![],
limit: None,
}))
);