diff --git a/lib/src/sql/expression.rs b/lib/src/sql/expression.rs index 22be732d..45498c71 100644 --- a/lib/src/sql/expression.rs +++ b/lib/src/sql/expression.rs @@ -12,9 +12,9 @@ use std::str; #[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Serialize, Deserialize)] pub struct Expression { - l: Value, - o: Operator, - r: Value, + pub l: Value, + pub o: Operator, + pub r: Value, } impl Default for Expression { diff --git a/lib/src/sql/mod.rs b/lib/src/sql/mod.rs index 4aac0024..dd02e4c0 100644 --- a/lib/src/sql/mod.rs +++ b/lib/src/sql/mod.rs @@ -68,6 +68,7 @@ pub use self::field::Field; pub use self::field::Fields; pub use self::function::Function; pub use self::geometry::Geometry; +pub use self::graph::Dir; pub use self::graph::Graph; pub use self::group::Group; pub use self::group::Groups; @@ -80,6 +81,7 @@ pub use self::limit::Limit; pub use self::model::Model; pub use self::number::Number; pub use self::object::Object; +pub use self::operation::Op; pub use self::operation::Operation; pub use self::operator::Operator; pub use self::order::Order; diff --git a/lib/src/sql/query.rs b/lib/src/sql/query.rs index 9ff37486..ba87f99e 100644 --- a/lib/src/sql/query.rs +++ b/lib/src/sql/query.rs @@ -7,7 +7,7 @@ use std::str; #[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)] pub struct Query { - statements: Statements, + pub statements: Statements, } impl Query {