Skip to content

Sqlite: introduce Sqlite.foldl #45

@robinheghan

Description

@robinheghan

Sqlite.getAll requires that you have enough memory to store the entire result set in memory. This isn't always possible, so we should introduce a new function that can reduce a large result set into a smaller value.

Sqlite.fold would work exactly like Array.foldl, and would be based on the Node.js sqlite.iterate function: https://nodejs.org/docs/latest-v22.x/api/sqlite.html#statementiteratenamedparameters-anonymousparameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions