DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Configuring a Shopify MuleSoft Connector
  • Build a Query in MuleSoft With Optional Parameters
  • Handle HL7 MLLP Messages With Mule 4
  • SharePoint Integration With MuleSoft

Trending

  • RAG Architecture Patterns: Proxy, Caching, and Routing
  • Why Spark Executors Leave Cores Idle on YARN: A Packing Model for Executor Sizing
  • Evals in CI: How to Catch Agent Regressions Before Production Does
  • Batching Strategies: Throughput vs Latency in Practice

Draft This article hasn't been published, so readers can't see it.

In moderation This article is waiting for review, so readers can't see it yet.

Deleted This article has been deleted, so readers can't see it.

  1. DZone
  2. Data Engineering
  3. Data
  4. Connecting Snowflake With MuleSoft Database Connector

Connecting Snowflake With MuleSoft Database Connector

Snowflake is an analytics data warehouse provided as Software as a Service. Find out how to connect Snowflake with MuleSoft.

By 
Jitendra Bafna
·
Aug. 20, 20 · Tutorial
Post on X (opens in a new tab) Share on LinkedIn (opens in a new tab)
12.1K Views

Join the DZone community Save articles, join the discussion, and download Refcards and Trend Reports with a free account.

Join for free Already a member? Log in

Introduction

Snowflake is an analytics data warehouse provided as Software as a Service. It is faster, flexible, and easy to use and it is not built on the top of any BigData platform like Hadoop. It has many similarities to the Enterprise data warehouse but also some unique and additional capabilities. As Snowflake is a SaaS application, there is no need for any hardware need to set up virtually or physically, and no additional software required to install, configure, or manage.

MuleSoft Database Connector

MuleSoft database connectors have capabilities to connect any database like MS SQL, Oracle, MySQL, etc. The database connector provides many operations like Select, Update, Delete, Insert, Calling Stored Procedure, etc.

database connector

In this article, we will see how we can connect Snowflake using a Database connector via JDBC.

Connecting the Snowflake With Database Connector

For connecting Snowflake using a Database connector, we need to perform database connection configuration. Select the Connection from the drop-down as a Generic Connection.  Provide JDBC URL, Driver class name, username, and password.

JDBC Url must be in format.

Plain Text
 




x



1
jdbc:snowflake://<account_name>.snowflakecomputing.com/?<connection_params>



We will be going to use a few connection params like user, password, DB, and schema.

Connection Param Description
user Specifies the user for the connection.
password Specifies the user for the connection.
DB Specifies the database name that wants to connect.
schema Specifies the default schema to use for the specified database

Driver class name will be net.snowflake.client.jdbc.SnowflakeDriver. JDBC Url that needs to be configured on the MuleSoft database connector will look like as shown below.

Plain Text
 




x



1
jdbc:snowflake://<account_name>.snowflakecomputing.com/?user=admin&password=test123&db=Product_Summaries&schema=public



We need to provide the username and password in the connector configuration. It will be the same username and password that we have passed in the JDBC URL.

snowflake database

Now, we will be required to install the Snowflake JDBC drive. So we can click Configure JDBC Driver and add maven dependency.

jdbc driver

Now, we can add the below-mentioned maven dependency and click on the finish. This will add maven dependency in the Pom.xml and download required libraries.

net.snowflake

XML
 




xxxxxxxxxx
1


 
1
<dependency>
2
    <groupId>net.snowflake</groupId>
3
    <artifactId>snowflake-jdbc</artifactId>
4
    <version>3.12.9</version>
5
</dependency>



Once all the configuration has been finished, we can simply test the connection.

test connection success

Now, you know how to connect Snowflake with MuleSoft via JDBC connection.

Database connection Connector (mathematics) MuleSoft

Opinions expressed by DZone contributors are their own.

Related

  • Configuring a Shopify MuleSoft Connector
  • Build a Query in MuleSoft With Optional Parameters
  • Handle HL7 MLLP Messages With Mule 4
  • SharePoint Integration With MuleSoft

Partner Resources

×

Comments

Loading comments

The comments didn't load

Please try again in a moment.

Likes

Loading

The next likes didn't load. Please try again.

The likes didn't load

Please try again in a moment.

See who liked this

Log in or join DZone for free to see who liked this article.

Log in Join for free
  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook