pub struct Tokenizer {
pub preserve_comments: bool,
/* private fields */
}Expand description
SQL tokenizer that converts a SQL string into a stream of tokens.
Tracks line and column numbers for error reporting. Supports:
- Single-line comments (
--) - Block comments (
/* ... */) - Quoted identifiers (
"..."and backtick) - String literals with escape handling
- Multi-character operators (
<=,>=,<>,!=,||,::,->,->>)
Fields§
§preserve_comments: boolWhether to preserve comments as tokens.
Implementations§
Auto Trait Implementations§
impl Freeze for Tokenizer
impl RefUnwindSafe for Tokenizer
impl Send for Tokenizer
impl Sync for Tokenizer
impl Unpin for Tokenizer
impl UnsafeUnpin for Tokenizer
impl UnwindSafe for Tokenizer
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