All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core_snowflakeapp.showcase.showcaseNativeApps.pure Maven / Gradle / Ivy

There is a newer version: 4.67.1
Show newest version
// Copyright 2023 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 meta::pure::functions::tests::collection::*;
import meta::external::function::activator::snowflakeApp::generation::*;
import meta::external::store::relational::runtime::*;
import meta::pure::mapping::*;
import meta::external::function::activator::snowflakeApp::tests::model::simple::*;
import meta::external::function::activator::snowflakeApp::tests::*;
import meta::external::function::activator::snowflakeApp::*;
import meta::external::function::activator::*;

function meta::external::function::activator::snowflakeApp::tests::defaultConfig():SnowflakeDeploymentConfiguration[1]
{
  ^SnowflakeDeploymentConfiguration(target = testRelationalConnection().connection->cast(@RelationalDatabaseConnection) );
}

function meta::external::function::activator::snowflakeApp::tests::simpleApp():Any[*]
{
  let app =  ^SnowflakeApp
   (
      applicationName = 'App1',
      ownership = ^DeploymentOwnership(id = 'owner1'),
      description = 'bla bla',
      activationConfiguration = defaultConfig() ,
      function = meta::external::function::activator::snowflakeApp::tests::simpleRelationalfunction__TabularDataSet_1_
   );
   let generatedQuery = $app->generateFullArtifact();
   //isMulti
}

function meta::external::function::activator::snowflakeApp::tests::simpleAppWithParams():Any[*]
{
  let app =  ^SnowflakeApp
   (
      applicationName = 'App1',
      ownership = ^DeploymentOwnership(id = 'owner1'),
      description = 'bla bla',
      activationConfiguration = defaultConfig() ,
      function = meta::external::function::activator::snowflakeApp::tests::simpleRelationalfunctionWithParams_Integer_1__TabularDataSet_1_
   );
   let generatedQuery = $app->generateArtifact();
   //isMulti
}

function meta::external::function::activator::snowflakeApp::tests::simpleAppWithStringParams():Any[*]
{
  let app =  ^SnowflakeApp
   (
      applicationName = 'App1',
      ownership = ^DeploymentOwnership(id = 'owner1'),
      description = 'bla bla',
      activationConfiguration = defaultConfig() ,
      function = meta::external::function::activator::snowflakeApp::tests::simpleRelationalfunctionWithStringParams_String_1__TabularDataSet_1_
   );
   let generatedQuery = $app->generateArtifact();
   //isMulti
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy