Title: add :stream keyword` · Issue #4464 · sqlc-dev/sqlc · GitHub
Open Graph Title: add :stream keyword` · Issue #4464 · sqlc-dev/sqlc
X Title: add :stream keyword` · Issue #4464 · sqlc-dev/sqlc
Description: What do you want to change? Earlier requests have been made to return an iterator, but we have to be careful not to break the 'RETURNING' statements that don't work well with a cursor. Also the developer kind of knows it is a 'big query'...
Open Graph Description: What do you want to change? Earlier requests have been made to return an iterator, but we have to be careful not to break the 'RETURNING' statements that don't work well with a cursor. Also the dev...
X Description: What do you want to change? Earlier requests have been made to return an iterator, but we have to be careful not to break the 'RETURNING' statements that don't work well with a cursor. ...
Opengraph URL: https://github.com/sqlc-dev/sqlc/issues/4464
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add :stream keyword`","articleBody":"### What do you want to change?\n\nEarlier requests have been made to return an iterator, but we have to be careful not to break the 'RETURNING' statements that don't work well with a cursor. Also the developer kind of knows it is a 'big query' or not. \n\nSo instead of changing existing behavior i would suggest adding a new keyword `:stream` for returning an iterator and using a cursor. Then it is up to the developer himself to decide can i return an iterator or array.\n\nRelated issue in the python generator:\nhttps://github.com/sqlc-dev/sqlc-gen-python/issues/101\n\nPrevious issues:\nhttps://github.com/sqlc-dev/sqlc/issues/4108\nhttps://github.com/sqlc-dev/sqlc/issues/720\n\n### What database engines need to be changed?\n\nPostgreSQL, SQLite, MySQL\n\n### What programming language backends need to be changed?\n\nGo, Python, Kotlin","author":{"url":"https://github.com/borissmidt","@type":"Person","name":"borissmidt"},"datePublished":"2026-06-01T09:58:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/4464/sqlc/issues/4464"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb00b82e-6d24-bd2c-455c-0ecc7835fb5d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D56E:23560F:323689A:445837A:6A53ED8E |
| html-safe-nonce | 69149b6431aa70a4978a229714ea6459be861181692f07b06659a24b6158faa8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTZFOjIzNTYwRjozMjM2ODlBOjQ0NTgzN0E6NkE1M0VEOEUiLCJ2aXNpdG9yX2lkIjoiNzk1NjY5MjI0MzUyMzU2Mjg5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 41e75e56b9791dd4e9657d9f9f5bcaf55e543760cf742236eed5f864f99d844a |
| hovercard-subject-tag | issue:4562130499 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sqlc-dev/sqlc/4464/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e8b3b5c46f8fcf5457b60c93f32a9bc1570b2fb70c423e32dbbc0f6db27a25c/sqlc-dev/sqlc/issues/4464 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e8b3b5c46f8fcf5457b60c93f32a9bc1570b2fb70c423e32dbbc0f6db27a25c/sqlc-dev/sqlc/issues/4464 |
| og:image:alt | What do you want to change? Earlier requests have been made to return an iterator, but we have to be careful not to break the 'RETURNING' statements that don't work well with a cursor. Also the dev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | borissmidt |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width