"Snowflake" (Data Connection)
"Snowflake" (Data Connection)
Details
- Use DataConnectionObject to represent data located in Snowflake in Wolfram Language.
- Import can be used to retrieve data from a DataConnectionObject.
Properties
| "ConnectionName" | "Snowflake" | |
| "Location" | SQL query given as a string | |
| "Redownload" | whether to rerun the query and overwrite cached results |
| "Host" | the host servicing the database |
| "Port" | the server port to access the database |
| "query" | SQL query given as a string |
Account Setting & Authentication
| Automatic | attempt to use saved credentials or give a dialog | |
| "Dialog" | give authentication parameters via a dialog | |
| SystemCredential["key"] | retrieve authentication information from secure storage | |
| SystemCredentialData[…] | stored authentication data | |
| assoc | provide explicit credentials |
| "Username" | username | |
| "Password" | password |
Examples
open all close allBasic Examples (2)
Create a DataConnectionObject to data from a Snowflake query:
dco = DataConnectionObject[<|"ConnectionName" -> "Snowflake", "Host" -> "ABCDEFG-XX123456.snowflakecomputing.com", "Location" -> "SELECT * FROM table"|>, Authentication -> <|"Username" -> "reader", "Password" -> "readerpass"|>]DataConnectionObject[Association["ConnectionName" -> "Snowflake",
"Host" -> "ABCDEFG-XX123456.snowflakecomputing.com", "Location" -> "SELECT * FROM table"],
Association["UUID" -> "46847409-b614-4d2b-bafd-46a72195a74e"],
Authentication -> Association["Username" -> "reader", "Password" -> "readerpass"]]Retrieve the data using Import:
Import@DataConnectionObject[<|"ConnectionName" -> "Snowflake", "Host" -> "ABCDEFG-XX123456.snowflakecomputing.com", "Location" -> "SELECT * FROM table"|>, Authentication -> <|"Username" -> "reader", "Password" -> "readerpass"|>]Authentication (1)
See Also
Data Connections: Databricks PostgreSQL SQLite MySQL MicrosoftSQL Oracle