Compiles DBT models into Lightdash explores and generates SQL queries.
class ExploreCompiler {
constructor(warehouseClient: WarehouseSqlBuilder);
compileExplore(uncompiledExplore: UncompiledExplore): Explore;
}interface WarehouseSqlBuilder {
getSqlForMetricQuery(
explore: Explore,
metricQuery: CompiledMetricQuery,
warehouseClient?: WarehouseClient
): string;
getFieldQuoteChar(): string;
getStringQuoteChar(): string;
getEscapeStringQuoteChar(): string;
getFloatingType(): string;
concatString(...args: string[]): string;
escapeString(value: string): string;
getAdapterType(): SupportedDbtAdapter;
getStartOfWeek(): WeekDay | null | undefined;
}import { ExploreCompiler } from '@lightdash/common';
const compiler = new ExploreCompiler(warehouseClient);
const compiledExplore = compiler.compileExplore(uncompiledExplore);