Skip to main content

mapRawPage

@webda/core


Function: mapRawPage()

mapRawPage(map, table, batchSize, token?): RawPage

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

Read a page of a key/value storage, in key order

The token is the last key of the page, so rows added or removed meanwhile do not shift the next page.

Parameters​

map​

Map<string, any>

the storage

table​

string

table name of the rows

batchSize​

number

rows per page

token?​

string

token of the previous page

Returns​

RawPage

the page