lpil / lpil/pog

Return stream or iterator from query

Open
#53 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Gleam
Stars
264
Forks
35
PR merge metrics
No merged PRs in 30d

Description

Is there any kind of support for returning a stream/iterator or similar? The use case would be for when you need to return very large datasets from the DB, and being able to start processing it without loading everything on memory.

As an example, this is available in node.js for this purpose: https://www.npmjs.com/package/pg-query-stream

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the existing query API and PostgreSQL client behavior before deciding how a stream or iterator should be exposed. Compare the requested behavior with the linked pg-query-stream example, and consider the work complete when callers can process very large result sets incrementally without loading the full dataset into memory.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.