Skip to content

query: exec を全件取得へ変更し --rows / --offset を撤廃#43

Merged
buty4649 merged 1 commit intomainfrom
query-exec-full-fetch
Apr 20, 2026
Merged

query: exec を全件取得へ変更し --rows / --offset を撤廃#43
buty4649 merged 1 commit intomainfrom
query-exec-full-fetch

Conversation

@buty4649
Copy link
Copy Markdown
Contributor

Summary

  • xp query exec--rows / --offset フラグを撤廃
  • list 型クエリの実行結果を rows=1000 で自動ページングし、exec_result.data が空または短いページになった時点でループ終了
  • 集計 (summary / cross) のように exec_result.data が配列でないクエリでは 1 回目のレスポンスをそのまま返すフォールバックを実装
  • --no-run 指定時は従来通りページングせず定義のみを取得

Test plan

  • go build ./... / go vet ./... / go test ./... が通ることを確認
  • list 型クエリで全件ページングできること (3213 行のクエリを 4 リクエストで取得)
  • --no-run 時に定義のみ取得され exec_result が含まれないこと

🤖 Generated with Claude Code

list 型クエリの実行結果を rows=1000 で自動ページングし、
exec_result.data が空または短いページになった時点でループ終了する
ように変更。--no-run 指定時はページング不要なので従来通り1回の
リクエストで定義のみを取得する。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 self-assigned this Apr 20, 2026
@buty4649 buty4649 enabled auto-merge (squash) April 20, 2026 10:07
@buty4649 buty4649 merged commit 4defdda into main Apr 20, 2026
2 checks passed
@buty4649 buty4649 deleted the query-exec-full-fetch branch April 20, 2026 10:08
@pepabo-pr-maker pepabo-pr-maker bot mentioned this pull request Apr 20, 2026
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.

1 participant