SQLAggregateFunction
public protocol SQLAggregateFunction
A custom SQL aggregate function.
-
Invokes the aggregate function for one or more values in a row.
Throws
Declaration
Swift
func step(_ values: [DatabaseValue]) throwsParameters
valuesThe SQL function parameters
-
Returns the current value of the aggregate function.
Note
This should also reset any function context to defaults.
Throws
Declaration
Swift
func final() throws -> DatabaseValueReturn Value
The current value of the aggregate function.
View on GitHub
SQLAggregateFunction Protocol Reference