prorm API Reference
    Preparing search index...

    Class StarrocksStore

    StarrocksStore wraps a mysql2 connection to a StarRocks frontend and exposes query(sql, params) for reads/DDL and ingest(table, rows) for batched wire-level inserts.

    Implements

    Index
    name: "starrocks" = 'starrocks'

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

    library: "mysql2" = 'mysql2'

    The client library being used

    • Execute a SQL statement over the MySQL wire with optional positional params and return the result rows (the first element of mysql2's [rows, fields] tuple).

      Type Parameters

      • T = Record<string, unknown>

      Parameters

      • sql: string
      • Optionalparams: unknown[]

      Returns Promise<T[]>

    • Batch-insert rows into table via a single parameterized INSERT INTO table (cols) VALUES (...) over the MySQL wire. Columns are taken from the first row. Returns the driver result (OkPacket).

      For high-throughput bulk loading, use StarRocks Stream Load (HTTP) instead — see the module header.

      Parameters

      • table: string
      • rows: Record<string, unknown>[]

      Returns Promise<any>