/** * Copyright (c) 2020-present, Goldman Sachs * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { TDSExecutionResult } from '@finos/legend-graph'; import type { CachedDataCubeSource } from '@finos/legend-data-cube'; export declare class LegendDataCubeDuckDBEngine { private static readonly DUCKDB_DEFAULT_SCHEMA_NAME; private static readonly CACHE_TABLE_NAME_PREFIX; private static readonly INGEST_TABLE_NAME_PREFIX; private static readonly CACHE_FILE_NAME; private static readonly INGEST_FILE_DATA_FILE_NAME; private static cacheTableCounter; private static ingestFileTableCounter; private static readonly COLUMN_NAME; private static readonly COLUMN_TYPE; private static readonly ESCAPE_CHAR; private static readonly QUOTE_CHAR; private _catalog; private _database?; private get database(); retrieveCatalogTable(ref: string): DuckDBCatalogTable; initialize(): Promise; cache(result: TDSExecutionResult): Promise<{ schema: string; table: string; rowCount: number; }>; ingestLocalFileData(data: string, format: string, refId?: string): Promise<{ dbReference: string; columnNames: string[]; }>; ingestIcebergTable(warehouse: string, paths: string[], catalogApi: string, token?: string): Promise<{ dbReference: string; }>; runSQLQuery(sql: string): Promise; disposeCache(source: CachedDataCubeSource): Promise; dispose(): Promise; } export type DuckDBCatalogTable = { schemaName: string; tableName: string; columns: string[][]; }; //# sourceMappingURL=LegendDataCubeDuckDBEngine.d.ts.map