pub enum OrderBy {
Ordinal(usize),
Expr(Expr),
}Expand description
What an order by key names.
Variants§
Ordinal(usize)
order by 2 — the second column of the select list, one-based, as SQL numbers them.
Expr(Expr)
An expression over the row, which for order by c is the column c. A name that matches
an output column’s name is that output column, and only then a column of a table: SQL
resolves an order by against the select list first, and a query may order by something it
computed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OrderBy
impl RefUnwindSafe for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin for OrderBy
impl UnwindSafe for OrderBy
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