Skip to main content

rest_sql/
lib.rs

1pub mod ast;
2pub mod dsl;
3pub mod error;
4pub mod mapper;
5pub mod parsing;
6#[cfg(test)]
7pub(crate) mod test_suite;
8
9pub use ast::{Ast, Constraint, Operator, Value};
10pub use dsl::RestSql;
11pub use error::{ParseError, RestSqlError, ValidationError};
12pub use mapper::{FieldMapper, IdentityMapper};
13
14#[cfg(test)]
15mod tests {
16    use crate::test_suite::{dsl, suite};
17
18    #[test]
19    fn parsing_suite() {
20        suite::run(crate::parsing::parse);
21    }
22
23    #[test]
24    fn dsl_suite() {
25        dsl::run();
26    }
27}