MCPcopy
hub / github.com/simstudioai/sim / nextPage

Function nextPage

apps/sim/lib/workspaces/fork/copy/cleanup-failed.test.ts:12–15  ·  view source on GitHub ↗
(table: unknown)

Source from the content-addressed store, hash-verified

10 const deletes: Array<{ table: unknown }> = []
11
12 const nextPage = (table: unknown): unknown[] => {
13 const pages = reads.get(table)
14 return pages && pages.length > 0 ? (pages.shift() as unknown[]) : []
15 }
16
17 // A drizzle-style read builder bound to one table: `.where`/`.orderBy`/`.limit` chain back to
18 // the same builder, and awaiting it (at `.where()` or `.limit()`) shifts that table's next page.

Callers 1

makeReadBuilderFunction · 0.85

Calls 2

shiftMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected