18 using System.Collections.Generic;
20 namespace Deveel.Data.Sql.Parser {
31 if (String.IsNullOrEmpty(dialect))
32 throw new ArgumentNullException(
"dialect");
35 Errors =
new List<SqlParseError>();
42 public string Dialect {
get;
private set; }
68 public bool HasRootNode {
69 get {
return RootNode != null; }
76 public ICollection<SqlParseError> Errors {
get;
private set; }
81 public TimeSpan ParseTime {
get; set; }
89 public bool HasErrors {
90 get {
return Errors.Count > 0; }
The result of a parse of an SQL input
Defines the contract for nodes in an AST model for a SQL grammar analysis and parsing.
SqlParseResult(string dialect)
Constructs a new SqlParseResult.