UNPKG

drizzle-cube

Version:

Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.

17 lines (16 loc) 650 B
import { ModeAdapter } from './modeAdapter'; import { QueryMergeStrategy } from '../types'; import { AnalysisBuilderState } from '../components/AnalysisBuilder/types'; /** * The shape of query mode state in the store. * This is what the adapter's load() returns and save() receives. */ export interface QuerySliceState { /** Array of query states (one per query tab) */ queryStates: AnalysisBuilderState[]; /** Index of the active query tab */ activeQueryIndex: number; /** Strategy for combining multiple queries */ mergeStrategy: QueryMergeStrategy; } export declare const queryModeAdapter: ModeAdapter<QuerySliceState>;