sqruff_lib_core::errors

Trait SqlError

Source
pub trait SqlError {
    // Required methods
    fn fixable(&self) -> bool;
    fn rule_code(&self) -> Option<&'static str>;
    fn identifier(&self) -> &'static str;
    fn check_tuple(&self) -> (&'static str, usize, usize);
}

Required Methods§

Source

fn fixable(&self) -> bool

Source

fn rule_code(&self) -> Option<&'static str>

Source

fn identifier(&self) -> &'static str

Source

fn check_tuple(&self) -> (&'static str, usize, usize)

Get a tuple representing this error. Mostly for testing.

Implementors§