UNPKG

@visactor/vmind

Version:

<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu

29 lines (28 loc) 965 B
import type { DataQueryCtx, DataTable, FieldInfo } from '../../types'; type PatchSQLResult = { finalSql: string; validDataset: DataTable; columnReplaceMap: Map<string, string>; sqlReplaceMap: Map<string, string>; llmFieldInfo: FieldInfo[]; }; export declare const patchSQLBeforeQuery: (context: DataQueryCtx) => PatchSQLResult; type QueryResult = { alasqlDataset: DataTable; }; export declare const executeDataQuery: (context: PatchSQLResult) => { alasqlDataset: any; }; type RestoreResult = { datasetAfterQuery: DataTable; llmFieldInfo: FieldInfo[]; }; export declare const restoreDatasetAfterQuery: (context: { llmFieldInfo: FieldInfo[]; } & QueryResult & PatchSQLResult) => RestoreResult; export type ExecuteQueryCtx = DataQueryCtx & PatchSQLResult & QueryResult & RestoreResult; export declare const getFinalQueryResult: (context: ExecuteQueryCtx) => { dataTable: DataTable; fieldInfo: FieldInfo[]; }; export {};