react-native-nitro-sqliteInterfaces
LazyQueryRows
TypeScriptSource files: TypeScript
Rows of a completed query, converted to JavaScript on demand.
Type Parameters
Row
Row extends QueryResultRow = QueryResultRow
Properties
length
readonly length: number
Defined in: specs/NitroSQLiteLazyQueryResult.ts:8
Number of rows in the completed result. Reading it does not convert rows.
Methods
item()
item(index): Row | undefined
Defined in: specs/NitroSQLiteLazyQueryResult.ts:13
Return the row at a zero-based index, converting and caching it on first access.
An invalid or out-of-range index returns undefined.
Parameters
index
number
Returns
Row | undefined
toArray()
toArray(): Row[]
Defined in: specs/NitroSQLiteLazyQueryResult.ts:18
Return all rows in SQL result order in a new array.
Each element is the same object that item returns for that index.
Returns
Row[]