Skip to content

feat: cursor and fetch support#339

Merged
sunng87 merged 9 commits into
masterfrom
feature/cursor
May 11, 2026
Merged

feat: cursor and fetch support#339
sunng87 merged 9 commits into
masterfrom
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
@sunng87
Copy link
Copy Markdown
Member Author

sunng87 commented May 11, 2026

@mjgarton Let me merge this first and if you have any comments feel free to leave them here I will create a new patch to address them.

@sunng87 sunng87 merged commit 646dde3 into master May 11, 2026
7 checks passed
@sunng87 sunng87 deleted the feature/cursor branch May 11, 2026 02:24
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