From 65d0e3138aef3180845d5a0b447ff1bb62160e83 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Wed, 4 May 2022 00:08:31 +0100 Subject: [PATCH] Ensure all necessary SQL types are publicly exported --- lib/src/sql/expression.rs | 6 +++--- lib/src/sql/mod.rs | 2 ++ lib/src/sql/query.rs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) 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 {