12 releases

0.2.0 Feb 16, 2024
0.2.0-alpha Feb 12, 2024
0.1.11-alpha Oct 14, 2023
0.1.8-alpha Sep 27, 2023
0.1.0 Nov 27, 2023

#2035 in Database interfaces

Download history 25/week @ 2024-01-20 5/week @ 2024-01-27 156/week @ 2024-02-10 66/week @ 2024-02-17 62/week @ 2024-02-24 21/week @ 2024-03-02 84/week @ 2024-03-09 15/week @ 2024-03-16 2/week @ 2024-03-23 27/week @ 2024-03-30 4/week @ 2024-04-06

268 downloads per month
Used in 4 crates (via scyllax-macros-core)

MIT/Apache

51KB
1K SLoC

scyllax-parser (sɪl-æks)

A parser for CQL queries.

discord codecov CI

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
~20K SLoC