Skip to content

Add pagination and session-SQL support from 0.0.10 build#33

Open
dnlw07 wants to merge 1 commit into
evidence-dev:masterfrom
dnlw07:master
Open

Add pagination and session-SQL support from 0.0.10 build#33
dnlw07 wants to merge 1 commit into
evidence-dev:masterfrom
dnlw07:master

Conversation

@dnlw07

@dnlw07 dnlw07 commented Jul 18, 2026

Copy link
Copy Markdown

Summary

  • Recovers work compiled into the bigquery-sqltools-0.0.10.vsix that was never committed to src/
  • Adds query pagination for console SELECT/WITH queries, with exact (COUNT(1)) or estimated row totals, cached per query run
  • Adds connectionInitSql connection setting: runs once in a BigQuery session (createSession: true) right after connecting; the session is reused on subsequent queries
  • Adds previewLimit, disablePagination, and disablePaginationCount connection settings for controlling the new pagination behavior
  • No-result DML/DDL statements (INSERT/UPDATE/DELETE/MERGE/CREATE/DROP/ALTER/...) now show a one-row Statement/Result grid instead of a blank "No rows returned" grid
  • Fixes a bug where paging from page 1 to page 2 opened a new results tab while the original tab was stuck on a loading spinner, caused by generating a new random resultId per page instead of keeping it stable across a query's pages
  • Bumps version to 0.0.11 and updates CHANGELOG.md

Test plan

  • npx tsc --noEmit passes (aside from a pre-existing unrelated google-auth-library type error)
  • yarn compile / tsup builds successfully
  • Manually verify pagination on a large SELECT query (page forward/back, confirm no stuck spinner)
  • Manually verify connectionInitSql session setting connects and persists across queries
  • Manually verify a no-result UPDATE/INSERT shows the Statement/Result grid

estimated row counts, connectionInitSql session support, one-row
Statement/Result grids for no-result DML/DDL, and a stable resultId
across pages (fixes a stuck-loading-spinner bug on page 2).
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