pub struct NoSelectStarRule;Expand description
禁止 SELECT * 规则
检测 SELECT * 模式,建议显式列出列名以避免列顺序依赖与全表扫描。
Trait Implementations§
Source§impl Debug for NoSelectStarRule
impl Debug for NoSelectStarRule
Source§impl Default for NoSelectStarRule
impl Default for NoSelectStarRule
Source§fn default() -> NoSelectStarRule
fn default() -> NoSelectStarRule
Returns the “default value” for a type. Read more
Source§impl SqlRule for NoSelectStarRule
impl SqlRule for NoSelectStarRule
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 NoSelectStarRule
impl RefUnwindSafe for NoSelectStarRule
impl Send for NoSelectStarRule
impl Sync for NoSelectStarRule
impl Unpin for NoSelectStarRule
impl UnsafeUnpin for NoSelectStarRule
impl UnwindSafe for NoSelectStarRule
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