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
-
group(sql:Extension methodarguments: ) Creates a request with a new grouping.
Declaration
Swift
public func group(sql: String, arguments: StatementArguments = StatementArguments()) -> Self -
group(literal:Extension method) Creates a request with a new grouping.
Declaration
Swift
public func group(literal sqlLiteral: SQLLiteral) -> Self -
having(sql:Extension methodarguments: ) Creates a request with the provided sql added to the eventual set of already applied predicates.
Declaration
Swift
public func having(sql: String, arguments: StatementArguments = StatementArguments()) -> Self -
having(literal:Extension method) Creates a request with the provided sql added to the eventual set of already applied predicates.
Declaration
Swift
public func having(literal sqlLiteral: SQLLiteral) -> Self
View on GitHub
Install in Dash
AggregatingRequest Protocol Reference