public class SqlSimpleParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SqlSimpleParser.IdToken
Token representing an identifier.
|
static class |
SqlSimpleParser.Token
Token.
|
static class |
SqlSimpleParser.Tokenizer
Tokenizer.
|
| Constructor and Description |
|---|
SqlSimpleParser(String hintToken)
Deprecated.
|
SqlSimpleParser(String hintToken,
SqlParser.Config parserConfig)
Creates a SqlSimpleParser.
|
| Modifier and Type | Method and Description |
|---|---|
String |
simplifySql(String sql)
Turns a partially completed or syntactically incorrect SQL statement into a
simplified, valid one that can be validated.
|
String |
simplifySql(String sql,
int cursor)
Turns a partially completed or syntactically incorrect sql statement into
a simplified, valid one that can be passed into getCompletionHints().
|
@Deprecated public SqlSimpleParser(String hintToken)
SqlSimpleParser(String, SqlParser.Config)hintToken - Hint tokenpublic SqlSimpleParser(String hintToken, SqlParser.Config parserConfig)
hintToken - Hint tokenparserConfig - parser configurationpublic String simplifySql(String sql, int cursor)
sql - A partial or syntactically incorrect sql statementcursor - to indicate column position in the query at which
completion hints need to be retrieved.public String simplifySql(String sql)
sql - A partial or syntactically incorrect sql statementCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.