Interface QueryResult<R>

An object with rows and row properties.

interface QueryResult<R> {
    row: null | Readonly<DrainOuterGeneric<{
        [K in string | number | symbol]: R[K]
    }>>;
    rows: readonly Readonly<DrainOuterGeneric<{
        [K in string | number | symbol]: R[K]
    }>>[];
}

Type Parameters

Properties

Properties

row: null | Readonly<DrainOuterGeneric<{
    [K in string | number | symbol]: R[K]
}>>

The first row returned by the query, or null if no rows were returned. This property is useful for queries that are expected to return a single row.

rows: readonly Readonly<DrainOuterGeneric<{
    [K in string | number | symbol]: R[K]
}>>[]

An array containing all the rows returned by the query.