View as Markdown

API reference: @salmonui/data/server

PivotQueryHandlerOptionsinterface

import type { PivotQueryHandlerOptions } from '@salmonui/data/server';
interface PivotQueryHandlerOptions {
    readonly engine: PivotEngineFactoryLike;
    readonly fields?: readonly unknown[];
    readonly locale?: string;
    readonly key?: string;
    readonly types?: Readonly<Record<string, WireType>>;
    readonly dict?: readonly string[] | 'auto';
    readonly facetLimit?: number;
    readonly maxCells?: number;
    readonly cacheSize?: number;
}
PivotQueryHandlerOptions members (9)
NameSignatureDescription
enginereadonly engine: PivotEngineFactoryLike;

The engine factory: createPivotEngine from @salmonui/pivot-table/engine.

fieldsoptionalreadonly fields?: readonly unknown[];

Field definitions passed to the engine (server-side: valueGetter allowed).

localeoptionalreadonly locale?: string;
keyoptionalreadonly key?: string;

Key field for write requests (drill-through editing). Default: the first field.

typesoptionalreadonly types?: Readonly<Record<string, WireType>>;

Wire types of drill-through and read rows (default: inferred).

dictoptionalreadonly dict?: readonly string[] | 'auto';

Dictionary-encode drill-through and read string fields.

facetLimitoptionalreadonly facetLimit?: number;

Max facet entries. Default 1000.

maxCellsoptionalreadonly maxCells?: number;

Largest window a request may ask for, in cells. Default 250,000.

cacheSizeoptionalreadonly cacheSize?: number;

Engines kept per distinct where. Default 4.