fold package:sqlite-simple

Perform a SELECT or other SQL query that is expected to return results. Results are converted and fed into the action callback as they are being retrieved from the database. This allows gives the possibility of processing results in constant space (for instance writing them to disk). Exceptions that may be thrown:
A version of fold where the query parameters (placeholders) are named.
A version of fold which does not perform parameter substitution.