NitroSQLite
react-native-nitro-sqliteInterfaces

LazyQueryRows

TypeScript

Source 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:14

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

Zero-based row index.

Returns

Row | undefined


toArray()

toArray(): Row[]

Defined in: specs/NitroSQLiteLazyQueryResult.ts:19

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[]

On this page