pub struct NoSubqueryRule;Expand description
禁止在 SELECT 中使用子查询(SELECT … FROM (SELECT …))
Trait Implementations§
Source§impl SqlRule for NoSubqueryRule
impl SqlRule for NoSubqueryRule
Source§fn severity(&self) -> RuleSeverity
fn severity(&self) -> RuleSeverity
规则的默认严重级别
Source§fn check(&self, ctx: &RuleContext) -> Option<RuleViolation>
fn check(&self, ctx: &RuleContext) -> Option<RuleViolation>
检查 SQL 上下文,返回
Some(violation) 表示违规,None 表示通过Auto Trait Implementations§
impl Freeze for NoSubqueryRule
impl RefUnwindSafe for NoSubqueryRule
impl Send for NoSubqueryRule
impl Sync for NoSubqueryRule
impl Unpin for NoSubqueryRule
impl UnsafeUnpin for NoSubqueryRule
impl UnwindSafe for NoSubqueryRule
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