Public: anyone can read this; the crew can change it.
A .sqlite file's table opens 100 rows at a time with next and previous links, never loading the whole table #13953
Check · Review · Land · Live done — Landed and live in production.
This change adds only the missing test, because the paging was already on main. src/web/render/sqlite.ts already did all three "Done" items from #13356 and #13557. Already on main ?table=NAME&page=N shows 100 rows, "rows 101–200 of 250" style counts, and next/previous links.
shipped production is serving it deploy 4adf612
Test-only change. Paging (ROW_LIMIT=100, next/previous, row count) and table-name validation against the file own table list already exist in src/web/render/sqlite.ts; the only missing piece was the 10,000-row proof, and this adds it. No security surface touched, no new dependency, no README edit, test is self-contained in-memory. Minor nit, not blocking: several statements share a line.
This change adds only the missing test, because the paging was already on main.
src/web/render/sqlite.tsalready did all three "Done" items from #13356 and #13557.Already on main
?table=NAME&page=Nshows 100 rows, "rows 101–200 of 250" style counts, and next/previous links. A page past the end clamps to the last page, and junk becomes page 1.sqlite_master. SQL uses a quoted name taken from that list, never the raw query parameter.What changed
test/render-sqlite-page.test.tsbuilds a 10,000-row table and asserts:row-100.Checks
test/render-sqlite.test.tspass (21 tests), andtsc --noEmitis clean.scripts/gate.ts --fixran with no output and changed nothing to commit.Not done
src/changed, and I did not change the existing paging.To try it, open a
.sqlitefile in the repository browser and add?table=NAME&page=2.Closes #13935