@sqlrooms/duckdb / UseSqlQueryResult
Interface: UseSqlQueryResult<T>
A wrapper interface that exposes the underlying Arrow table, a typed row accessor, and the number of rows.
Type Parameters
Type Parameter |
---|
T |
Properties
arrowTable
arrowTable:
Table
The underlying Arrow table
length
length:
number
Number of rows in the table
Methods
getRow()
getRow(
index
):T
Returns a typed row at the specified index by converting on demand
Parameters
Parameter | Type |
---|---|
index | number |
Returns
T
rows()
rows():
IterableIterator
<T
>
Returns an iterator that yields each row in the table
Returns
IterableIterator
<T
>
toArray()
toArray():
T
[]
Returns an array containing all rows in the table
Returns
T
[]