NitroSQLite
react-native-nitro-sqliteInterfaces

QueryCursor

TypeScript

Source files: TypeScript

A paged read over one SQLite snapshot. Consume or close it to release the reader.

Type Parameters

Row

Row extends QueryResultRow = QueryResultRow

Methods

close()

close(): Promise<void>

Defined in: types.ts:219

Wait for any pending read and release the cursor. Safe to call more than once.

Returns

Promise<void>


readPage()

readPage(): Promise<QueryCursorPage<Row>>

Defined in: types.ts:217

Read the next page. If a page fills exactly, the next page can be empty with done: true.

Returns

Promise<QueryCursorPage<Row>>

Up to pageSize rows, column metadata, and whether SQLite reached the end.

Throws

NitroSQLiteError if another page is pending, the cursor is closed or exhausted, or SQLite fails. A query failure closes the cursor.

On this page