Definition at line 26 of file QuerySelectColumns.cs.
Definition at line 43 of file QuerySelectColumns.cs.
readonly QueryExpressionFrom fromSet
The tables we are selecting from.
readonly List< SelectColumn > selectedColumns
void Deveel.Data.Sql.Query.QuerySelectColumns.AddAllFromTable |
( |
IFromTableSource |
table | ) |
|
|
inlineprivate |
Definition at line 52 of file QuerySelectColumns.cs.
54 var columns = table.ColumnNames;
55 foreach (ObjectName name
in columns) {
Represents a column selected to be in the output of a select statement.
static SqlReferenceExpression Reference(ObjectName objectName)
void SelectSingleColumn(SelectColumn col)
Defines the base class for instances that represent SQL expression tree nodes.
Definition at line 137 of file QuerySelectColumns.cs.
138 int aggregateCount = 0;
139 var functionColumns =
new List<SelectColumn>();
140 var preparedColumns =
new List<SelectColumn>();
142 var prepared =
PrepareColumn(column, context, functionColumns, ref aggregateCount);
143 preparedColumns.Add(prepared);
146 return new PreparedQuerySelectColumns(preparedColumns, functionColumns, aggregateCount);
SelectColumn PrepareColumn(SelectColumn column, IRequest context, IList< SelectColumn > functionColumns, ref int aggregateCount)
readonly List< SelectColumn > selectedColumns
Definition at line 88 of file QuerySelectColumns.cs.
91 throw new InvalidOperationException(
"Sub-query expressions are invalid in select columns.");
100 var sqlRef = (SqlReferenceExpression) exp;
101 var colName = sqlRef.ReferenceName;
102 ObjectName resolvedName = null;
104 var alias = column.
Alias;
105 if (
String.IsNullOrEmpty(alias)) {
106 resolvedName = colName;
108 resolvedName =
new ObjectName(alias);
112 InternalName = colName,
113 ResolvedName = resolvedName
116 var funcAlias = functionColumns.Count.ToString(CultureInfo.InvariantCulture);
117 if (column.
Expression.HasAggregate(context)) {
122 var alias = column.
Alias;
123 if (
string.IsNullOrEmpty(alias))
124 alias = exp.ToString();
128 ResolvedName =
new ObjectName(alias)
131 functionColumns.Add(newColumn);
An expression that references an object within a context.
A long string in the system.
readonly QueryExpressionFrom fromSet
The tables we are selecting from.
virtual SqlExpression Prepare(IExpressionPreparer preparer)
Represents a column selected to be in the output of a select statement.
SqlExpression Expression
Gets the expression used to select the column.
string Alias
Gets the name used to alias the select expression.
IExpressionPreparer ExpressionPreparer
static readonly ObjectName FunctionTableName
The name of the table where functions are defined.
void Deveel.Data.Sql.Query.QuerySelectColumns.SelectAllColumnsFromAllSources |
( |
| ) |
|
|
inline |
Definition at line 81 of file QuerySelectColumns.cs.
IFromTableSource GetTableSource(int offset)
readonly QueryExpressionFrom fromSet
The tables we are selecting from.
void AddAllFromTable(IFromTableSource table)
void Deveel.Data.Sql.Query.QuerySelectColumns.SelectAllColumnsFromSource |
( |
ObjectName |
tableName | ) |
|
|
inline |
Definition at line 68 of file QuerySelectColumns.cs.
71 if (tableName.Parent != null)
72 schema = tableName.Parent.Name;
76 throw new InvalidOperationException(tableName +
".* is not a valid reference.");
readonly QueryExpressionFrom fromSet
The tables we are selecting from.
void AddAllFromTable(IFromTableSource table)
IFromTableSource FindTable(string schema, string name)
void Deveel.Data.Sql.Query.QuerySelectColumns.SelectSingleColumn |
( |
SelectColumn |
col | ) |
|
|
inline |
readonly ObjectName Deveel.Data.Sql.Query.QuerySelectColumns.FunctionTableName = new ObjectName("FUNCTIONTABLE") |
|
staticprivate |
readonly List<SelectColumn> Deveel.Data.Sql.Query.QuerySelectColumns.selectedColumns |
|
private |
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Query/QuerySelectColumns.cs