pub struct LexicalParser { /* private fields */ }Expand description
Lexical Parser for SQL queries
Implementations§
Source§impl LexicalParser
impl LexicalParser
Sourcepub fn tokenize(&mut self) -> Result<Vec<LexicalToken>, String>
pub fn tokenize(&mut self) -> Result<Vec<LexicalToken>, String>
Tokenizes the input SQL string using sqlparser’s tokenizer
Sourcepub fn get_tokens(&self) -> &[LexicalToken]
pub fn get_tokens(&self) -> &[LexicalToken]
Returns the tokens found by the parser
Sourcepub fn get_filtered_tokens(&self) -> Vec<&LexicalToken>
pub fn get_filtered_tokens(&self) -> Vec<&LexicalToken>
Returns non-whitespace tokens
Sourcepub fn print_tokens(&self)
pub fn print_tokens(&self)
Prints a formatted token list
Auto Trait Implementations§
impl Freeze for LexicalParser
impl RefUnwindSafe for LexicalParser
impl Send for LexicalParser
impl Sync for LexicalParser
impl Unpin for LexicalParser
impl UnsafeUnpin for LexicalParser
impl UnwindSafe for LexicalParser
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