> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Snowflake connector

- Connector: `appmixer.snowflake`
- Version: 1.3.0
- Components: 8 (3 triggers, 5 actions)

Snowflake is a fully managed SaaS platform for data warehousing, data lakes, data engineering, data science, data application development, and secure sharing and consumption of real-time and shared data.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0>
- Documentation: <https://docs.appmixer.com/connector-configuration/snowflake>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/snowflake>
- Download package: <https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/download>

## Authentication

**Type:** API Key

**Fields:**

- `Account` (text): Your account identifier, the part of the account URL before `.snowflakecomputing.com`: `<orgname>-<account_name>` (for example `myorg-myaccount`) or the account locator with its region (for example `xy12345.eu-central-1`). In Snowsight: user menu → your account → **View account details**.
- `Username` (text): The login name of the Snowflake user.
- `Password or Token` (password): A programmatic access token of the user (recommended), or its password. Snowflake no longer accepts a password alone for most users. Leave empty when you use a private key.
- `Private Key` (textarea): Optional. For key-pair authentication, paste the PEM private key (`-----BEGIN PRIVATE KEY-----` ...) whose public key is set on the user (`ALTER USER ... SET RSA_PUBLIC_KEY`). When filled, it is used instead of the password.
- `Private Key Passphrase` (password): Optional. The passphrase of an encrypted private key (`-----BEGIN ENCRYPTED PRIVATE KEY-----`).
- `Database` (text): Name of the database the components work in.
- `Warehouse` (text): Name of the warehouse that runs the queries, for example `COMPUTE_WH`.

## Triggers (3)

- [Deleted Row](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.DeletedRow.md) (`appmixer.snowflake.db.DeletedRow`): Triggers when a row is deleted from a Snowflake table.
- [New Row](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.NewRow.md) (`appmixer.snowflake.db.NewRow`): Triggers when a new row is inserted into a Snowflake table.
- [Updated Row](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.UpdatedRow.md) (`appmixer.snowflake.db.UpdatedRow`): Triggers when a row in a Snowflake table is updated.

## Actions (5)

- [Add Row](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.AddRow.md) (`appmixer.snowflake.db.AddRow`): Add a new row to a table.
- [List Columns](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.ListColumns.md) (`appmixer.snowflake.db.ListColumns`): List the columns of a table.
- [List Tables](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.ListTables.md) (`appmixer.snowflake.db.ListTables`): List tables.
- [List Schemas](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.ListSchemas.md) (`appmixer.snowflake.db.ListSchemas`): List database schemas.
- [Query](https://connectors.appmixer.com/connector/appmixer.snowflake/1.3.0/component/appmixer.snowflake.db.Query.md) (`appmixer.snowflake.db.Query`): Run an arbitrary query against your Snowflake database.

## Changelog

### 1.3.0

- Security: updated snowflake-sdk to 2.0.4 (GHSA-wmjq-jrm2-9wfr).
- Security: turned off the Snowflake driver's own logging, which could write credentials to logs (GHSA-qqj6-54q6-cxv6).
- Security: AddRow and Query send values as bind parameters, and schema, table and column names are quoted, so a value or name can no longer change the SQL statement.
- Authentication: the password field also takes a programmatic access token, and a private key can be used instead (key-pair authentication). Snowflake no longer accepts a password alone for most users.
- Query: new optional Parameters input with values for the ? placeholders in the query.
- UpdatedRow: the old and new values of a row are paired by row ID, so they no longer come out swapped or mixed up when several rows change at once.
- Every component closes its Snowflake session when it is done, and driver errors (for example an invalid query) reach the flow with their message.
- Schema and table inputs accept a typed name when the list cannot be loaded, and the output variables of AddRow, NewRow and DeletedRow fall back to the whole row when the table's columns cannot be read. Updated icons and descriptions.

### 1.2.0

- Added test() (Flow Test Mode) to all triggers: NewRow, UpdatedRow, DeletedRow.

### 1.1.14

- Added output examples to component schemas.

### 1.1.13

- Fixed an issue when invalid query could cause the engine to crash.

### 1.1.12

- Update snowflake-sdk dependency to v1.11.0.

### 1.1.11

- Update snowflake-sdk dependency to v1.6.21.

### 1.1.10

- The input fields now have the required attribute.

### 1.1.9

- Updated defaultValue for 'Query' component

### 1.1.8

- Unified outport options.
- Fixed trigger components.

### 1.1.7

- Fixed outport options.

### 1.1.6

- Added outport options.

### 1.1.5

- Updated stream names to resolve collision issue.

### 1.1.4

- Fixed tooltip in Auth screen.

### 1.1.3

- Updated tooltip for 'Account' to provide more accurate and detailed information.

### 1.1.2

- Fixed 'Query' component

### 1.1.1

- Fixed out port issue

### 1.1.0

- Added Validation for 'Query' component
- Fixed 'ListTables' component
- Fixed log error in AddRow component

### 1.0.0

- Initial version
