AggregateColumnExpression
public struct AggregateColumnExpression : Field
An expression containing an aggregate function applied on a column.
-
The alias of the field.
Declaration
Swift
public var alias: String? -
The aggregate function to apply.
Declaration
Swift
public private(set) var function: AggregateFunction { get } -
Build the query component using
QueryBuilder.Throws
QueryError.syntaxError if query build fails.Declaration
Swift
public func build(queryBuilder: QueryBuilder) throws -> StringParameters
queryBuilderThe QueryBuilder to use.
Return Value
A String representation of the query component.
-
An enumeration of the supported aggregate functions that can applied on a column.
See moreDeclaration
Swift
public enum AggregateFunction
View on GitHub
AggregateColumnExpression Structure Reference