public class MySqlParser extends Object implements SqlParser
Implementation Status: DELEGATION PHASE
SqlParser,
SqlParserFactory| Constructor and Description |
|---|
MySqlParser() |
| Modifier and Type | Method and Description |
|---|---|
EDbVendor |
getVendor()
Get the database vendor this parser handles.
|
SqlParseResult |
parse(ParserContext context)
Parse SQL from the given context.
|
SqlParseResult |
tokenize(ParserContext context)
Tokenize SQL without parsing or statement extraction.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdoExtractRawStatements, getrawsqlstatementspublic MySqlParser()
public EDbVendor getVendor()
SqlParserpublic SqlParseResult parse(ParserContext context)
SqlParserThis method performs full parsing including:
All inputs come from the context parameter, all outputs go to the result. This ensures clean separation of concerns and thread-safety.
public SqlParseResult tokenize(ParserContext context)
SqlParserThis method performs only tokenization (lexical analysis):
The result contains tokens but NO statements. Use this when you only need the token stream (e.g., for syntax highlighting, token analysis).
For statement boundaries without full parsing, use SqlParser.getrawsqlstatements(ParserContext).