Skip to main content

scanRawRows

@webda/core


Function: scanRawRows()

scanRawRows(pages, tables, maxRows, onRow): Promise<boolean>

Defined in: packages/core/src/stores/migration.ts:416

Read the rows of raw tables page by page, in table order, stopping after maxRows rows

Parameters​

pages​

(table, batchSize, token?) => Promise<RawPage>

reads a page of a table (a store's rawPages)

tables​

RawTable[]

the tables to read

maxRows​

number

the row limit

onRow​

(row) => void

called for each row

Returns​

Promise<boolean>

true when rows were left unread because of the limit