scyllax-parser 0.2.1

A parser for CQL queries
Documentation

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,
    }))
);