13 releases
0.2.1 | May 25, 2024 |
---|---|
0.2.0 | Feb 16, 2024 |
0.1.11-alpha | Oct 14, 2023 |
0.1.8-alpha | Sep 27, 2023 |
0.1.0 | Nov 27, 2023 |
#2440 in Database interfaces
Used in 4 crates
(via scyllax-macros-core)
51KB
1K
SLoC
scyllax-parser (sɪl-æks)
A parser for CQL queries.
Usage
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,
}))
);
lib.rs
:
A parser for CQL queries See the source code and tests for examples of usage (for now).
Dependencies
~1MB
~19K SLoC