Definition at line 21 of file PreparerVisitor.cs.
static IEnumerable<T> Deveel.Data.Sql.Expressions.PreparerVisitor.Prepare< T > |
( |
IEnumerable< T > |
list, |
|
|
IExpressionPreparer |
preparer |
|
) |
| |
|
inlinestaticprivate |
Definition at line 47 of file PreparerVisitor.cs.
49 var newList =
new List<T>();
50 foreach (var item
in list) {
52 if (newItem != null) {
53 newItem = (T)newItem.Prepare(
preparer);
59 return newList.ToArray();
readonly IExpressionPreparer preparer
Visits a given SQL expression.
- Parameters
-
- Returns
- Returns an instance of SqlExpression as result of the visit.
Reimplemented from Deveel.Data.Sql.Expressions.SqlExpressionVisitor.
Definition at line 28 of file PreparerVisitor.cs.
32 return base.Visit(expression);
SqlExpression Prepare(SqlExpression expression)
Returns the new translated object to be mutated from the given expression.
readonly IExpressionPreparer preparer
bool CanPrepare(SqlExpression expression)
Verifies whether the instance of the interface can prepare the given expression.
- Parameters
-
- Returns
Reimplemented from Deveel.Data.Sql.Expressions.SqlExpressionVisitor.
Definition at line 35 of file PreparerVisitor.cs.
36 var reference = assign.ReferenceExpression;
37 if (reference != null)
38 reference = reference.Prepare(
preparer);
40 var valueExpression = assign.ValueExpression;
41 if (valueExpression != null)
42 valueExpression = valueExpression.Prepare(
preparer);
44 return SqlExpression.Assign(reference, valueExpression);
readonly IExpressionPreparer preparer
- Parameters
-
- Returns
Reimplemented from Deveel.Data.Sql.Expressions.SqlExpressionVisitor.
Definition at line 62 of file PreparerVisitor.cs.
63 var selectColumns = Prepare(query.SelectColumns,
preparer);
64 var newExpression =
new SqlQueryExpression(selectColumns);
66 var where = query.WhereExpression;
70 newExpression.WhereExpression = where;
72 var having = query.HavingExpression;
76 newExpression.HavingExpression = having;
78 var from = query.FromClause;
80 from = (FromClause) ((IPreparable)from).Prepare(
preparer);
82 query.FromClause = from;
84 var nextComposite = query.NextComposite;
85 if (nextComposite != null)
86 nextComposite = (SqlQueryExpression) nextComposite.Prepare(
preparer);
88 query.NextComposite = nextComposite;
readonly IExpressionPreparer preparer
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Expressions/PreparerVisitor.cs