pub struct OrderByClause {
pub expr: Expr,
pub ascending: bool,
}Expand description
A parsed ORDER BY clause: a single sort key (expression), ascending
by default. Phase 7b widened this from “bare column name” to
“arbitrary expression” so KNN queries of the form
ORDER BY vec_distance_l2(col, [...]) LIMIT k work end-to-end. The
expression is evaluated per-row at execution time via eval_expr;
the simple ORDER BY col form still works because that’s just an
Expr::Identifier taking the same path.
Fields§
§expr: Expr§ascending: boolTrait Implementations§
Source§impl Clone for OrderByClause
impl Clone for OrderByClause
Source§fn clone(&self) -> OrderByClause
fn clone(&self) -> OrderByClause
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OrderByClause
impl RefUnwindSafe for OrderByClause
impl Send for OrderByClause
impl Sync for OrderByClause
impl Unpin for OrderByClause
impl UnsafeUnpin for OrderByClause
impl UnwindSafe for OrderByClause
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