Required Initializergrdb 7.3.0GRDB
init
Creates an aggregate.
init()
A new instance is created for each aggregation.
Creates an aggregate.
init()
A new instance is created for each aggregation.
import GRDB
A toolkit for SQLite databases, with a focus on application development
protocol DatabaseAggregate
The protocol for custom SQLite aggregates.
func finalize() throws -> (any DatabaseValueConvertible)?
Returns the aggregated value.
mutating func step(_ dbValues: [DatabaseValue]) throws
Updates the aggregated value for one step of the aggregation.