react-native-nitro-sqliteHybrid Objects
NitroSQLiteCursor
TypeScriptC++Source files: TypeScript · C++
Native query cursor with a private read-only connection to the main database file.
Extends
HybridObject<{android:"c++";ios:"c++"; }>
Methods
close()
close(): Promise<void>
Defined in: specs/NitroSQLiteCursor.nitro.ts:30
Release the reader after any submitted page finishes. Subsequent reads fail.
Returns
Promise<void>
A promise that resolves after cleanup. Repeated calls are safe.
readPage()
readPage(): Promise<NitroSQLiteCursorPage>
Defined in: specs/NitroSQLiteCursor.nitro.ts:25
Step the statement for up to one page. The first step establishes the snapshot.
Returns
Promise<NitroSQLiteCursorPage>
The rows and column metadata for the current page.
Throws
If a read is running, the cursor is closed or exhausted, or SQLite fails. A query failure releases the reader and closes the cursor.