Class SqlQueryAnalyzer
Provides facilities to analyse SQL statements and reconstruct them from an abstract representation.
public static class SqlQueryAnalyzer
- Inheritance
-
SqlQueryAnalyzer
- Inherited Members
Methods
Parse(string, SqlSyntaxOptions?)
Parses the provided SQL text into an abstract representation.
public static SqlQuery Parse(string sql, SqlSyntaxOptions? syntaxOptions = null)
Parameters
sqlstringThe SQL statement to parse.
syntaxOptionsSqlSyntaxOptionsTokenizer and parameter options applied to the parsing process.
Returns
Exceptions
- ArgumentException
Thrown when
sqlis null or whitespace.- SqlParseException
Thrown when the SQL text cannot be parsed.