/** * 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 { type PackageableConnection, type PackageableRuntime, type ObserverContext, LakehouseRuntime, LakehouseSingleStoreRuntime } from '@finos/legend-graph'; export declare const lakehouseRuntime_setWarehouse: (runtime: LakehouseRuntime, warehouse: string | undefined) => void; export declare const lakehouseRuntime_setConnection: (runtime: LakehouseRuntime, connection: PackageableConnection | undefined) => void; export declare enum LakehouseComputeEngine { SNOWFLAKE = "SNOWFLAKE", SINGLE_STORE = "SINGLE_STORE" } /** * Vendor product names, so they are spelled the way the vendor spells them -- * `prettyCONSTName` cannot produce "SingleStore" from any all-caps constant. */ export declare const LAKEHOUSE_COMPUTE_ENGINE_LABEL: Record; export declare const getLakehouseComputeEngine: (runtimeValue: LakehouseRuntime | LakehouseSingleStoreRuntime) => LakehouseComputeEngine; /** * Swaps the concrete Lakehouse runtime class backing `packageableRuntime` * between `LakehouseRuntime` (Snowflake) and `LakehouseSingleStoreRuntime`. * These are distinct classes with distinct wire `_type`s, not a flag on one * class, so switching compute engine means constructing a new instance -- * `environment` carries over, `warehouse`/`connectionPointer` naturally fall * away (or reset to undefined) since the target class may not have them. */ export declare const lakehouseRuntime_setComputeEngine: (packageableRuntime: PackageableRuntime, computeEngine: LakehouseComputeEngine, observerContext: ObserverContext) => LakehouseRuntime | LakehouseSingleStoreRuntime; //# sourceMappingURL=DSL_LakehouseRuntime_GraphModifierHelper.d.ts.map