Skip to content

Commit

Permalink
fix: make SqlQuery attributes public
Browse files Browse the repository at this point in the history
  • Loading branch information
gadomski committed Oct 8, 2024
1 parent dbf0e0b commit a1bde1a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ pub use {error::Error, expr::Expr, geometry::Geometry, parser::parse_text, valid
/// A SQL query, broken into the query and parameters.
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct SqlQuery {
query: String,
params: Vec<String>,
/// The SQL query, with placeholders for parameters.
pub query: String,

/// The SQL parameters, as strings.
pub params: Vec<String>,
}

/// Parses a cql2-json string into a CQL2 expression.
Expand Down

0 comments on commit a1bde1a

Please sign in to comment.