prorm API Reference
    Preparing search index...

    Class PinotStore

    PinotStore wraps Pinot's broker query API (POST /query/sql) behind the NoSqlStore lifecycle. query() maps the columnar resultTable into an array of row objects; queryTable() returns the raw resultTable envelope for callers who need the schema or the positional rows.

    Implements

    Index
    name: "pinot" = 'pinot'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "fetch" = 'fetch'

    The client library being used

    • Run a Pinot SQL query via POST /query/sql and return the rows as an array of objects keyed by the result column names. For the raw columnar envelope (schema + positional rows), use queryTable().

      Type Parameters

      • T = Record<string, unknown>

      Parameters

      • sql: string

      Returns Promise<T[]>

    • Run a Pinot SQL query and return the raw resultTable envelope (dataSchema + positional rows), exactly as the broker returns it.

      Parameters

      • sql: string

      Returns Promise<PinotResultTable>