DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Properties | List of all members
Deveel.Data.Sql.Parser.SqlParseResult Class Reference

The result of a parse of an SQL input More...

Public Member Functions

 SqlParseResult (string dialect)
 Constructs a new SqlParseResult. More...
 

Properties

string Dialect [get, private set]
 Gets the name of the SQL dialect of the parser that generated this result. More...
 
ISqlNode RootNode [get, set]
 Gets or sets the node that is the root of the parsed nodes from the input. More...
 
bool HasRootNode [get]
 Gets a boolean value that indicates if the result has any root node set. More...
 
ICollection< SqlParseErrorErrors [get, private set]
 Gets a collection of SqlParseError that were found during the parse of an input. More...
 
TimeSpan ParseTime [get, set]
 Gets or sets the time the parser took to analyze an input provided. More...
 
bool HasErrors [get]
 Gets a boolean value indicating if the result has any error. More...
 

Detailed Description

The result of a parse of an SQL input

See also
ISqlParser

Definition at line 25 of file SqlParseResult.cs.

Constructor & Destructor Documentation

Deveel.Data.Sql.Parser.SqlParseResult.SqlParseResult ( string  dialect)
inline

Constructs a new SqlParseResult.

Parameters
dialectThe SQL dialect of the input.

Definition at line 30 of file SqlParseResult.cs.

30  {
31  if (String.IsNullOrEmpty(dialect))
32  throw new ArgumentNullException("dialect");
33 
34  Dialect = dialect;
35  Errors = new List<SqlParseError>();
36  }
A long string in the system.
ICollection< SqlParseError > Errors
Gets a collection of SqlParseError that were found during the parse of an input.
string Dialect
Gets the name of the SQL dialect of the parser that generated this result.

Property Documentation

string Deveel.Data.Sql.Parser.SqlParseResult.Dialect
getprivate set

Gets the name of the SQL dialect of the parser that generated this result.

Definition at line 42 of file SqlParseResult.cs.

ICollection<SqlParseError> Deveel.Data.Sql.Parser.SqlParseResult.Errors
getprivate set

Gets a collection of SqlParseError that were found during the parse of an input.

Definition at line 76 of file SqlParseResult.cs.

bool Deveel.Data.Sql.Parser.SqlParseResult.HasErrors
get

Gets a boolean value indicating if the result has any error.

See also
Errors, SqlParseError

Definition at line 89 of file SqlParseResult.cs.

bool Deveel.Data.Sql.Parser.SqlParseResult.HasRootNode
get

Gets a boolean value that indicates if the result has any root node set.

See also
RootNode

Definition at line 68 of file SqlParseResult.cs.

TimeSpan Deveel.Data.Sql.Parser.SqlParseResult.ParseTime
getset

Gets or sets the time the parser took to analyze an input provided.

Definition at line 81 of file SqlParseResult.cs.

ISqlNode Deveel.Data.Sql.Parser.SqlParseResult.RootNode
getset

Gets or sets the node that is the root of the parsed nodes from the input.

If the parser produced any tree from the analysis, this object will be used to construct commands to interact with the underlying system.

In some cases this value is not set, because of previous errors during the analysis of an input from the parser.

See also
ISqlNode, ISqlNodeVisitor

Definition at line 61 of file SqlParseResult.cs.


The documentation for this class was generated from the following file: