AggregatingRequest

public protocol AggregatingRequest

The protocol for all requests that can aggregate.

  • group(_:) Default implementation

    Creates a request grouped according to expressions promise.

    Default Implementation

    Creates a request grouped according to expressions.

    Declaration

    Swift

    func group(_ expressions: @escaping (Database) throws -> [SQLExpressible]) -> Self
  • having(_:) Default implementation

    Creates a request with the provided predicate promise added to the eventual set of already applied predicates.

    Default Implementation

    Creates a request with the provided predicate added to the eventual set of already applied predicates.

    Declaration

    Swift

    func having(_ predicate: @escaping (Database) throws -> SQLExpressible) -> Self

AggregatingRequest