public interface SqlParser
Custom SQL parser interface to control whether a single thread pool is used and whether timeout control is supported.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Method Summary
-
Field Details
-
DEFAULT
Default implementation that does not use a single thread pool and does not support timeout control.
-
-
Method Details
-
parse
net.sf.jsqlparser.statement.Statement parse(String statementReader) throws net.sf.jsqlparser.JSQLParserException, net.sf.jsqlparser.parser.ParseException Parses a SQL statement string.- Parameters:
statementReader- the SQL statement string to parse- Returns:
- the parsed
Statementobject - Throws:
net.sf.jsqlparser.JSQLParserException- if a JSQLParser-specific error occursnet.sf.jsqlparser.parser.ParseException- if a general parsing error occurs
-