abstract class QueryBuilder::Projection(T)
- QueryBuilder::Projection(T)
- Reference
- Object
Direct Known Subclasses
- QueryBuilder::AggregateProjection(T)
- QueryBuilder::AliasedProjection(T)
- QueryBuilder::CastDateProjection(T)
- QueryBuilder::CastDatetimeProjection(T)
- QueryBuilder::CastIntegerProjection(T)
- QueryBuilder::CastRealProjection(T)
- QueryBuilder::CastStringProjection(T)
- QueryBuilder::ColumnProjection(T)
- QueryBuilder::ConstantProjection(T)
- QueryBuilder::SubqueryProjection(T)
Defined in:
projection/projection.crClass Method Summary
- .avg(column : String) : AggregateProjection(T)
- .avg(projection : Projection) : AggregateProjection(T)
- .column(table : String, column : String) : ColumnProjection(T)
-
.column(col : String) : ColumnProjection(T)
simple columns
-
.constant(constant : T) : ConstantProjection(T)
constant
- .count(column : String) : AggregateProjection(T)
- .count(projection : Projection) : AggregateProjection(T)
- .count : AggregateProjection(T)
- .max(column : String) : AggregateProjection(T)
- .max(projection : Projection) : AggregateProjection(T)
-
.min(column : String) : AggregateProjection(T)
aggregate functions
- .min(projection : Projection) : AggregateProjection(T)
- .subquery(subquery : SqlBuilder, _as : String) : AliasedProjection(T)
-
.subquery(subquery : SqlBuilder) : SubqueryProjection(T)
subquery
- .sum(column : String) : AggregateProjection(T)
- .sum(projection : Projection) : AggregateProjection(T)
Instance Method Summary
-
#alias(name : String) : Projection(T)
Alias and casts
- #build : String
- #cast_date : Projection(T)
- #cast_datetime : Projection(T)
- #cast_int : Projection(T)
- #cast_real : Projection(T)
- #cast_string : Projection(T)
- #params : Array(T)