Skip to content

feat: cursor and fetch support#339

Open
sunng87 wants to merge 9 commits intomasterfrom
feature/cursor
Open

feat: cursor and fetch support#339
sunng87 wants to merge 9 commits intomasterfrom
feature/cursor

Conversation

@sunng87
Copy link
Copy Markdown
Member

@sunng87 sunng87 commented May 4, 2026

Fixes #338

This patch implements cursor related statements with portal.

Features included:

  • DECLARE <name> CURSOR FOR <query>
  • FETCH <n> FROM <name>
  • CLOSE <name>

Features not supported:

  • MOVE: not supported by sqlparser
  • FETCH prior

I may tune pgwire API to improve portal usage for cursor

@sunng87 sunng87 marked this pull request as draft May 6, 2026 09:49
@sunng87 sunng87 marked this pull request as ready for review May 7, 2026 02:17
@sunng87 sunng87 requested a review from mjgarton May 7, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cursor support

1 participant