AggregatingRequest
public protocol AggregatingRequest
The protocol for all requests that can aggregate.
-
group(_:)
Default implementationCreates a request grouped according to expressions.
Default Implementation
Creates a request grouped according to expressions.
Declaration
Swift
func group(_ expressions: [SQLExpressible]) -> Self
-
Creates a request with the provided predicate added to the eventual set of already applied predicates.
Declaration
Swift
func having(_ predicate: SQLExpressible) -> Self
-
group(sql:arguments:)
Extension methodCreates a request with a new grouping.
Declaration
Swift
public func group(sql: String, arguments: StatementArguments? = nil) -> Self
-
having(sql:arguments:)
Extension methodCreates a request with the provided sql added to the eventual set of already applied predicates.
Declaration
Swift
public func having(sql: String, arguments: StatementArguments? = nil) -> Self