Expand description
Low-level tokenizer and parser for SQLite SQL.
This crate is split from syntaqlite for internal build reasons — it is
not a separate user-facing library. All public types are re-exported by
syntaqlite. Depend on syntaqlite
directly. If you only need parsing (no formatting or validation), disable
the default features and enable just sqlite:
[dependencies]
syntaqlite = { version = "0.0.36", default-features = false, features = ["sqlite"] }Modules§
- any
- Type-erased variants of every parser and tokenizer type.
- nodes
- Generated typed AST for the built-in
SQLitegrammar. - typed
- Generic, grammar-parameterized variants of parser/tokenizer types.
- util
- Cross-cutting utilities for grammar configuration and compatibility.
Structs§
- Comment
- Comment captured from source during parsing.
- Comment
Span - Lightweight comment descriptor without a source text borrow.
- Incremental
Parse Session - Incremental parsing API for the built-in
SQLitegrammar. - Parse
Error - Parse error for one
SQLitestatement. - Parse
Session - Cursor over statements parsed from one SQL source string.
- Parsed
Statement - Parse result for one successfully recognized
SQLitestatement. - Parser
- High-level entry point for parsing
SQLiteSQL into typed AST statements. - Parser
Config - Controls optional parser behavior beyond core AST construction.
- Parser
Token - One parser-observed token from a parsed statement.
- Parser
Token Flags - Parser-inferred semantic usage for an individual token occurrence.
- Token
- Token emitted by
Tokenizer, including kind and source slice. - Tokenizer
- High-level tokenizer for
SQLiteSQL.
Enums§
- Comment
Kind - SQL comment style.
- Completion
Context - Parser’s best guess about what kind of token fits next.
- Parse
Error Kind - Indicates whether parsing can continue after an error.
- Parse
Outcome - Tri-state parse result for statement-oriented parser APIs.
- Token
Type