Definition at line 25 of file SqlDefaultCompiler.cs.
Implements Deveel.Data.Sql.Compile.ISqlCompiler.
Definition at line 26 of file SqlDefaultCompiler.cs.
28 throw new ArgumentNullException(
"context");
30 var compileResult =
new SqlCompileResult(context);
33 var sqlSource = context.SourceText;
36 foreach (var error
in result.Errors) {
37 var location =
new SourceLocation(error.Line, error.Column);
38 compileResult.Messages.Add(
new SqlCompileMessage(
CompileMessageLevel.Error, error.Message, location));
42 if (context.Context != null)
43 typeResolver = context.Context.TypeResolver();
46 var statements = builder.Build(result.RootNode);
48 foreach (var statement
in statements) {
49 compileResult.Statements.Add(statement);
54 }
catch (Exception ex) {
static readonly ISqlParser Default
SqlParseResult Parse(string input)
Analyzes and parses the input and results an object that describes the parsed nodes in a tree that ca...
An error that occurs when compiling a input string into a SQL object.
void Deveel.Data.Sql.Compile.SqlDefaultCompiler.Dispose |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Compile/SqlDefaultCompiler.cs