pub struct RawSql<T> {
pub where_clause: (Vec<String>, Vec<Param>),
pub order_clause: Vec<String>,
pub limit_clause: Option<[u64; 2]>,
/* private fields */
}Available on crate feature
utils only.Expand description
Intermediate SQL representation passed through the decorator chain and filled layer by layer.
Received by Query::query_with_context(); filters append WHERE conditions via
BaseFilter::update_sql(); Paginated sets limit_clause;
Sorted appends to order_clause. Finally assembled into a
complete SQL string by RawSql::build_sql().
Fields§
§where_clause: (Vec<String>, Vec<Param>)WHERE clause: (list of condition strings, list of bound parameters), joined with AND.
order_clause: Vec<String>ORDER BY expressions accumulated in append order.
limit_clause: Option<[u64; 2]>[limit, offset] corresponding to LIMIT ? OFFSET ?. None means no pagination.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RawSql<T>
impl<T> !RefUnwindSafe for RawSql<T>
impl<T> !Send for RawSql<T>
impl<T> !Sync for RawSql<T>
impl<T> Unpin for RawSql<T>where
T: Unpin,
impl<T> UnsafeUnpin for RawSql<T>
impl<T> !UnwindSafe for RawSql<T>
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