truegrain - v1.1.0
    Preparing search index...

    Interface Result

    Rows, plus the provenance needed to defend the numbers in them.

    interface Result {
        columns: string[];
        compiledSql: string;
        dialect: string;
        modelVersion: string;
        namespace: string;
        raw: Record<string, unknown>;
        rowCount: number;
        rows: Cell[][];
        toObjects(): Record<string, Cell>[];
    }
    Index
    columns: string[]

    The result columns, in order. Row values line up with these.

    compiledSql: string

    The exact statement executed. Carried on every response on purpose: it is how a disagreement about a number gets settled.

    dialect: string

    The dialect the statement was written in.

    modelVersion: string

    The exact set of definitions that produced these numbers.

    namespace: string

    The namespaces the query touched.

    raw: Record<string, unknown>

    The unparsed payload, so a new server field is readable without an SDK release.

    rowCount: number

    How many rows are in rows.

    rows: Cell[][]

    The rows, each aligned to columns.

    • Rows as objects keyed by column name.

      Returns Record<string, Cell>[]