This module extends the Database Connector module and creates a configuration layer for connecting to snowflake and manage multiple connection / database profiles. There is also the possibility of executing async queries to a snowflake database and altering warehouse size.
Manage snowflake connections in your Mendix project and execute (async) queries from a microflow.
This module extends current Database Connector module and creates a configuration layer for connecting to snowflake and manage multiple connection / database profiles.
Fix possible layout errors
Add the Administrator role from this module to one of the administrator roles in your app.
Connect 'Configuration' page to your app configuration.
Create at least 1 configuration and 1 database profile for each created configuration. You can use multiple database profiles for a configuration to access multiple databases/schema's with different warehouses for the same snowflake enterprise account and role. Test your created database profiles by clicking 'Test Database connection' on the bottom grid of the configuration page.
See example SF_TestResult_ExecuteQuery which is also used from the database test microflow (AT_DatabaseProfile_JdbcConnectionTest). This module uses the database connector activities and libraries as a base, so you need to create and specify the non peristent result object for your query and select it in the database activity within SF_TestResult_ExecuteQuery.
Use ConnectionBuilder_Create to collect all needed connectionparameters needed for the database connector.
Passwords are stored and encrypted using the Encryption module.
To easily test the connection side of the snowflake connection, use SQL: select current_version() as "Version". This example can be triggered from the configuration page with the 'test connectivity' button.
A virtual warehouse, often referred to simply as a “warehouse”, is a cluster of compute resources in Snowflake. A warehouse provides the required resources, such as CPU, memory, and temporary storage, to perform the following operations in a Snowflake session. The module has the ability to retrieve warehouse metadata and (temporarily) change the warehouse size.
In case of long running queries, you have the possibilty to use the snowflake specific executeAsyncQuery method to run a query async and retrieve the results later. See an example in AT_AsyncQueryExample_Create. You can retrieve the status of the async query as an enumeration value of try to retrieve the results immediately. See AT_AsyncQueryExample_* for an example. Async Query test results and test actions are displayed in a grid on the 2nd tab on the configuration page.