Skip to content

Instance Method

step(_:)

This method is called at each step of the aggregation.
mutating func step(_ values: [SQLiteData]) throws

Discussion

The dbValues argument contains as many values as given to the SQL aggregate function.

-- One value
SELECT maxLength(name) FROM player

-- Two values
SELECT maxFullNameLength(firstName, lastName) FROM player

This method is never called after the finalize() method has been called.