diff --git a/src/query/mod.rs b/src/query/mod.rs index e5f157f63b6a26302bf95e37b1f1e8d477b02a19..75a8cbf8a2abf3cf19929a2a691e0e6757941e0e 100644 --- a/src/query/mod.rs +++ b/src/query/mod.rs @@ -287,17 +287,17 @@ impl RawExpr { /// Construct a raw expression type from a string /// /// See type level docs for additional details - fn new<T: ToOwned<Owned = String>>(query: T) -> Self { + pub fn new<T: ToOwned<Owned = String>>(query: T) -> Self { RawExpr(query.to_owned()) } /// Construct a raw expression type from a type that that implements `Operable` /// /// See type level docs for additional details - fn from_expr<E: Operable>(expr: E) -> Self { + pub fn from_expr<E: Operable>(expr: E) -> Self { RawExpr(expr.to_string()) } /// Get the inner string - fn into_inner(self) -> String { + pub fn into_inner(self) -> String { self.0 } }