Expand description
Thin wrapper around sqlparser-rs.
Normalises the raw AST into our own ParsedStatement enum so the rest of
the tool never needs to import sqlparser types directly.
Structs§
Enums§
- Parsed
Statement - Normalised view of every SQL statement we care about.
Constants§
- UNSAFE_
KEYWORDS - SQL keywords that are dangerous but may not be modelled by our ParsedStatement enum.
Any segment containing one of these — even if sqlparser can’t parse it — gets
emitted as
Otherwith the “Unmodelled DDL” note so the engine can score it.
Functions§
- check_
unsafe_ keywords - Returns
Some(note)ifraw(uppercased) contains any known unsafe keyword. - parse
- Parse a full SQL string into a list of
ParsedStatements.