pub struct ValidatedSql {
pub sql: String,
pub datasets: Vec<String>,
}Expand description
A validated, ready-to-execute SQL query.
Fields§
§sql: StringThe trimmed, semicolon-free SQL string, safe to wrap and execute.
datasets: Vec<String>The distinct dataset names the query references (lowercased). Empty
for table-less queries such as SELECT 1.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidatedSql
impl RefUnwindSafe for ValidatedSql
impl Send for ValidatedSql
impl Sync for ValidatedSql
impl Unpin for ValidatedSql
impl UnsafeUnpin for ValidatedSql
impl UnwindSafe for ValidatedSql
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more