pub struct OrderByPositional;Trait Implementations§
Source§impl Rule for OrderByPositional
impl Rule for OrderByPositional
fn meta(&self) -> &'static RuleMeta
Source§fn check_query(
&self,
query: &Query,
_depth: usize,
ctx: &LintCtx<'_>,
out: &mut Vec<Diagnostic>,
)
fn check_query( &self, query: &Query, _depth: usize, ctx: &LintCtx<'_>, out: &mut Vec<Diagnostic>, )
depth is 0 for the outermost Query of a statement and increases for
nested queries (subqueries, derived tables, CTEs, scalar subqueries).
Rules that should only flag nested constructs can guard on depth > 0.fn check_statement( &self, _stmt: &SqltStatement, _ctx: &LintCtx<'_>, _out: &mut Vec<Diagnostic>, )
fn check_select( &self, _select: &Select, _ctx: &LintCtx<'_>, _out: &mut Vec<Diagnostic>, )
fn check_expr( &self, _expr: &Expr, _ctx: &LintCtx<'_>, _out: &mut Vec<Diagnostic>, )
Auto Trait Implementations§
impl Freeze for OrderByPositional
impl RefUnwindSafe for OrderByPositional
impl Send for OrderByPositional
impl Sync for OrderByPositional
impl Unpin for OrderByPositional
impl UnsafeUnpin for OrderByPositional
impl UnwindSafe for OrderByPositional
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