prorm API Reference
    Preparing search index...

    Class RocksetStore

    RocksetStore wraps a @rockset/client instance and exposes SQL querying (query) plus document ingestion (ingest) into a workspace.collection.

    Implements

    Index
    name: "rockset" = 'rockset'

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

    library: "@rockset/client" = '@rockset/client'

    The client library being used

    • Run a SQL query via client.queries.query({ sql: { query, parameters } }) and return the results array from the response.

      Type Parameters

      • T = Record<string, unknown>

      Parameters

      • sql: string
      • Optionalparams: unknown[]

      Returns Promise<T[]>

    • Ingest docs into target (a workspace.collection path, or just a collection name — defaulting the workspace to commons) via client.documents.addDocuments(workspace, collection, { data }).

      Parameters

      • target: string
      • docs: Record<string, unknown>[]

      Returns Promise<any>