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]) throws
Parameters
values
The 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 -> DatabaseValue
Return Value
The current value of the aggregate function.