pub struct SortResultInterceptor { /* private fields */ }
Expand description
Sort the query result in lexicographical order.
Grammar:
-- SQLNESS SORT_RESULT <ignore-head> <ignore-tail>
Both ignore-head
and ignore-tail
are optional. Default value is 0 (no lines will be ignored).
§Example
.sql
file:
-- SQLNESS SORT_RESULT
SELECT * from values (3), (2), (1);
.result
file:
-- SQLNESS SORT_RESULT
SELECT * from values (3), (2), (1);
1
2
3
Trait Implementations§
Source§impl Debug for SortResultInterceptor
impl Debug for SortResultInterceptor
Source§impl Interceptor for SortResultInterceptor
impl Interceptor for SortResultInterceptor
fn after_execute(&self, result: &mut String)
fn before_execute( &self, execute_query: &mut Vec<String>, context: &mut QueryContext, )
fn before_execute_async<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execute_query: &'life1 mut Vec<String>,
context: &'life2 mut QueryContext,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_execute_async<'life0, 'life1, 'async_trait>(
&'life0 self,
result: &'life1 mut String,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for SortResultInterceptor
impl RefUnwindSafe for SortResultInterceptor
impl Send for SortResultInterceptor
impl Sync for SortResultInterceptor
impl Unpin for SortResultInterceptor
impl UnwindSafe for SortResultInterceptor
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