pub enum RowOrder {
Declared,
Unspecified,
Unknown,
}Expand description
Whether the rows a statement produces come back in an order it asked for.
Three answers rather than a boolean, because “we could not tell” is a different thing from “it did not ask” and a caller that folds them together makes the wrong mistake somewhere. A differential harness comparing two engines wants to sort both sides when the order is unspecified and to compare as written when it is declared, and for the third case it has to pick, which is a policy decision that belongs to the harness and not here.
Variants§
Declared
The statement has a top level ORDER BY, so the order is part of the answer.
Unspecified
It parses, it has no top level ORDER BY, and so any order is a correct one.
Unknown
It does not parse here, so there is nothing to read the answer off.
Trait Implementations§
impl Copy for RowOrder
impl Eq for RowOrder
impl StructuralPartialEq for RowOrder
Auto Trait Implementations§
impl Freeze for RowOrder
impl RefUnwindSafe for RowOrder
impl Send for RowOrder
impl Sync for RowOrder
impl Unpin for RowOrder
impl UnsafeUnpin for RowOrder
impl UnwindSafe for RowOrder
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