rest-sql 0.3.0

RSQL/FIQL filter parser and validator for REST APIs — parse, validate, compile to native DB queries
Documentation
pub mod ast;
pub mod dsl;
pub mod error;
pub mod filter;
pub mod mapper;
pub mod parsing;
#[cfg(test)]
pub(crate) mod test_suite;

pub use ast::{Ast, Constraint, Operator, Value};
pub use dsl::RestSql;
pub use error::{ParseError, RestSqlError, ValidationError};
pub use mapper::{FieldMapper, IdentityMapper};

#[cfg(test)]
mod tests {
    use crate::test_suite::{dsl, suite};

    #[test]
    fn parsing_suite() {
        suite::run(crate::parsing::parse);
    }

    #[test]
    fn dsl_suite() {
        dsl::run();
    }

    #[test]
    fn filter_api_suite() {
        crate::test_suite::filter_api::run();
    }
}