Table of Contents

Class SqlQueryAnalyzer

Namespace
Utils.Data.Sql
Assembly
Utils.Data.dll

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

sql string

The SQL statement to parse.

syntaxOptions SqlSyntaxOptions

Tokenizer and parameter options applied to the parsing process.

Returns

SqlQuery

A SqlQuery representing the parsed statement.

Exceptions

ArgumentException

Thrown when sql is null or whitespace.

SqlParseException

Thrown when the SQL text cannot be parsed.