pub struct OrderChain { /* private fields */ }Expand description
One ordering-term under construction.
From https://www.sqlite.org/syntax/ordering-term.html:
expr [ COLLATE collation-name ] [ ASC | DESC ] [ NULLS { FIRST | LAST } ]There is no USING <operator> — that is PostgreSQL’s, and is why
OrderDirection has a third variant
this dialect never builds. NULLS FIRST/LAST needs SQLite 3.30 or later.
A single mod serves the statement’s ORDER BY and a window’s alike, because
SQLite has only one ORDER BY per statement: in a compound select it belongs to
the whole compound, so there is no second slot for
keelson_psql’s order_by_combined to write into.
Implementations§
Source§impl OrderChain
impl OrderChain
Sourcepub fn asc(self) -> OrderChain
pub fn asc(self) -> OrderChain
ASC.
Sourcepub fn desc(self) -> OrderChain
pub fn desc(self) -> OrderChain
DESC.
Sourcepub fn nulls_first(self) -> OrderChain
pub fn nulls_first(self) -> OrderChain
NULLS FIRST.
Sourcepub fn nulls_last(self) -> OrderChain
pub fn nulls_last(self) -> OrderChain
NULLS LAST.
Trait Implementations§
Source§impl Clone for OrderChain
impl Clone for OrderChain
Source§fn clone(&self) -> OrderChain
fn clone(&self) -> OrderChain
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderChain
impl Debug for OrderChain
Source§impl<Q: HasOrderBy> Mod<Q> for OrderChain
impl<Q: HasOrderBy> Mod<Q> for OrderChain
Auto Trait Implementations§
impl !RefUnwindSafe for OrderChain
impl !UnwindSafe for OrderChain
impl Freeze for OrderChain
impl Send for OrderChain
impl Sync for OrderChain
impl Unpin for OrderChain
impl UnsafeUnpin for OrderChain
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