Q: How to pass an init parameter value to a custom SQLite aggregate function How can I initialize a custom SQLite aggregate function with an init parameter (e.g. setting the "starting value" parameter in the example below)?
MySum:
    def __init__(self, starting_value):
        self.count = starting_value

    def step(self, value):
        self.count += value

    def finalize(self):
        return self.count

con.create_aggregate("mysum", 1, MySum)

