49 var tableName = context.Query.ResolveTableName(
TableName);
50 if (!context.Query.TableExists(tableName))
51 throw new ObjectNotFoundException(tableName);
58 var queryPlan = context.Query.Context.QueryPlanner().PlanQuery(
new QueryInfo(context, queryExpression));
60 var columns =
new List<SqlAssignExpression>();
62 var columnName = ObjectName.Parse(assignment.ColumnName);
65 var expression = assignment.Expression.Prepare(queryFrom.ExpressionPreparer);
71 return new Prepared(tableName, queryPlan, columns.ToArray(),
Limit);
void AddTable(string alias, FromTable table)
Adds a table as source to the query with a given alias.
ObjectName ResolveReference(ObjectName refName)
static SqlAssignExpression Assign(SqlExpression reference, SqlExpression valueExpression)
SqlExpression WherExpression
static QueryExpressionFrom Create(IRequest context, SqlQueryExpression expression)
static SqlBinaryExpression Add(SqlExpression left, SqlExpression right)
IEnumerable< SqlColumnAssignment > Assignments
Represents a column selected to be in the output of a select statement.
static SqlReferenceExpression Reference(ObjectName objectName)
Defines the base class for instances that represent SQL expression tree nodes.
static SelectColumn Glob(string glob)
Creates a special SelectColumn that is used to select all the columns in a table. ...