Skip to content

Commit b37890d

Browse files
2321 - snowflake component added
1 parent 2235705 commit b37890d

22 files changed

+11308
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,346 @@
1+
---
2+
title: "Snowflake"
3+
description: "Snowflake enables organizations to collaborate, build AI-powered data apps, and unlock data insights—all within a secure and scalable AI Data Cloud."
4+
---
5+
6+
Snowflake enables organizations to collaborate, build AI-powered data apps, and unlock data insights—all within a secure and scalable AI Data Cloud.
7+
8+
9+
Categories: Analytics
10+
11+
12+
Type: snowflake/v1
13+
14+
<hr />
15+
16+
17+
18+
## Connections
19+
20+
Version: 1
21+
22+
23+
### oauth2_authorization_code
24+
25+
#### Properties
26+
27+
| Name | Label | Type | Description | Required |
28+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
29+
| account_identifier | null | STRING | Account identifier. | true |
30+
| clientId | null | STRING | Snowflake OAuth Client ID. | true |
31+
| clientSecret | null | STRING | Snowflake OAuth Client Secret. | true |
32+
33+
34+
35+
36+
37+
<hr />
38+
39+
40+
41+
## Actions
42+
43+
44+
### Delete Row
45+
Name: deleteRow
46+
47+
Delete row from the table.
48+
49+
#### Properties
50+
51+
| Name | Label | Type | Description | Required |
52+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
53+
| database | Database | STRING | | true |
54+
| schema | Schema | STRING <details> <summary> Depends On </summary> database </details> | | true |
55+
| table | Table | STRING <details> <summary> Depends On </summary> schema </details> | | true |
56+
| column | Column | STRING | Column name that will be checked for condition. | true |
57+
| condition | Condition | STRING | Condition that will be checked in the column. | true |
58+
59+
#### Example JSON Structure
60+
```json
61+
{
62+
"label" : "Delete Row",
63+
"name" : "deleteRow",
64+
"parameters" : {
65+
"database" : "",
66+
"schema" : "",
67+
"table" : "",
68+
"column" : "",
69+
"condition" : ""
70+
},
71+
"type" : "snowflake/v1/deleteRow"
72+
}
73+
```
74+
75+
#### Output
76+
77+
78+
79+
Type: OBJECT
80+
81+
82+
#### Properties
83+
84+
| Name | Type | Description |
85+
|:------------:|:------------:|:-------------------:|
86+
| resultSetMetaData | OBJECT <details> <summary> Properties </summary> {INTEGER\(numRows), STRING\(format), [STRING\($name), STRING\($database), STRING\($schema), STRING\($table), {}\($scale), {}\($precision), INTEGER\($length), STRING\($type), BOOLEAN\($nullable), INTEGER\($byteLength), {}\($collation)]\(rowType), [INTEGER\($rowCount), INTEGER\($uncompressedSize)]\(partitionInfo)} </details> | |
87+
| data | ARRAY <details> <summary> Items </summary> [] </details> | |
88+
| code | STRING | |
89+
| statementStatusUrl | STRING | |
90+
| sqlState | STRING | |
91+
| statementHandle | STRING | |
92+
| message | STRING | |
93+
| createdOn | DATE | |
94+
| stats | ARRAY <details> <summary> Items </summary> [] </details> | |
95+
96+
97+
98+
99+
#### Output Example
100+
```json
101+
{
102+
"resultSetMetaData" : {
103+
"numRows" : 1,
104+
"format" : "",
105+
"rowType" : [ "", "", "", "", { }, { }, 1, "", false, 1, { } ],
106+
"partitionInfo" : [ 1, 1 ]
107+
},
108+
"data" : [ ],
109+
"code" : "",
110+
"statementStatusUrl" : "",
111+
"sqlState" : "",
112+
"statementHandle" : "",
113+
"message" : "",
114+
"createdOn" : "2021-01-01",
115+
"stats" : [ ]
116+
}
117+
```
118+
119+
120+
### Execute SQL
121+
Name: executeSql
122+
123+
Execute SQL statement.
124+
125+
#### Properties
126+
127+
| Name | Label | Type | Description | Required |
128+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
129+
| statement | Statement | STRING | SQL statement that will be executed. | true |
130+
131+
#### Example JSON Structure
132+
```json
133+
{
134+
"label" : "Execute SQL",
135+
"name" : "executeSql",
136+
"parameters" : {
137+
"statement" : ""
138+
},
139+
"type" : "snowflake/v1/executeSql"
140+
}
141+
```
142+
143+
#### Output
144+
145+
146+
147+
Type: OBJECT
148+
149+
150+
#### Properties
151+
152+
| Name | Type | Description |
153+
|:------------:|:------------:|:-------------------:|
154+
| resultSetMetaData | OBJECT <details> <summary> Properties </summary> {INTEGER\(numRows), STRING\(format), [STRING\($name), STRING\($database), STRING\($schema), STRING\($table), {}\($scale), {}\($precision), INTEGER\($length), STRING\($type), BOOLEAN\($nullable), INTEGER\($byteLength), {}\($collation)]\(rowType), [INTEGER\($rowCount), INTEGER\($uncompressedSize)]\(partitionInfo)} </details> | |
155+
| data | ARRAY <details> <summary> Items </summary> [] </details> | |
156+
| code | STRING | |
157+
| statementStatusUrl | STRING | |
158+
| sqlState | STRING | |
159+
| statementHandle | STRING | |
160+
| message | STRING | |
161+
| createdOn | DATE | |
162+
| stats | ARRAY <details> <summary> Items </summary> [] </details> | |
163+
164+
165+
166+
167+
#### Output Example
168+
```json
169+
{
170+
"resultSetMetaData" : {
171+
"numRows" : 1,
172+
"format" : "",
173+
"rowType" : [ "", "", "", "", { }, { }, 1, "", false, 1, { } ],
174+
"partitionInfo" : [ 1, 1 ]
175+
},
176+
"data" : [ ],
177+
"code" : "",
178+
"statementStatusUrl" : "",
179+
"sqlState" : "",
180+
"statementHandle" : "",
181+
"message" : "",
182+
"createdOn" : "2021-01-01",
183+
"stats" : [ ]
184+
}
185+
```
186+
187+
188+
### Insert Row
189+
Name: insertRow
190+
191+
Insert row into the table.
192+
193+
#### Properties
194+
195+
| Name | Label | Type | Description | Required |
196+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
197+
| database | Database | STRING | | true |
198+
| schema | Schema | STRING <details> <summary> Depends On </summary> database </details> | | true |
199+
| table | Table | STRING <details> <summary> Depends On </summary> schema </details> | | true |
200+
| values | Values | STRING | Values to insert into the table. Seperated by comma. | true |
201+
202+
#### Example JSON Structure
203+
```json
204+
{
205+
"label" : "Insert Row",
206+
"name" : "insertRow",
207+
"parameters" : {
208+
"database" : "",
209+
"schema" : "",
210+
"table" : "",
211+
"values" : ""
212+
},
213+
"type" : "snowflake/v1/insertRow"
214+
}
215+
```
216+
217+
#### Output
218+
219+
220+
221+
Type: OBJECT
222+
223+
224+
#### Properties
225+
226+
| Name | Type | Description |
227+
|:------------:|:------------:|:-------------------:|
228+
| resultSetMetaData | OBJECT <details> <summary> Properties </summary> {INTEGER\(numRows), STRING\(format), [STRING\($name), STRING\($database), STRING\($schema), STRING\($table), {}\($scale), {}\($precision), INTEGER\($length), STRING\($type), BOOLEAN\($nullable), INTEGER\($byteLength), {}\($collation)]\(rowType), [INTEGER\($rowCount), INTEGER\($uncompressedSize)]\(partitionInfo)} </details> | |
229+
| data | ARRAY <details> <summary> Items </summary> [] </details> | |
230+
| code | STRING | |
231+
| statementStatusUrl | STRING | |
232+
| sqlState | STRING | |
233+
| statementHandle | STRING | |
234+
| message | STRING | |
235+
| createdOn | DATE | |
236+
| stats | ARRAY <details> <summary> Items </summary> [] </details> | |
237+
238+
239+
240+
241+
#### Output Example
242+
```json
243+
{
244+
"resultSetMetaData" : {
245+
"numRows" : 1,
246+
"format" : "",
247+
"rowType" : [ "", "", "", "", { }, { }, 1, "", false, 1, { } ],
248+
"partitionInfo" : [ 1, 1 ]
249+
},
250+
"data" : [ ],
251+
"code" : "",
252+
"statementStatusUrl" : "",
253+
"sqlState" : "",
254+
"statementHandle" : "",
255+
"message" : "",
256+
"createdOn" : "2021-01-01",
257+
"stats" : [ ]
258+
}
259+
```
260+
261+
262+
### Update Row
263+
Name: updateRow
264+
265+
Update row from the table.
266+
267+
#### Properties
268+
269+
| Name | Label | Type | Description | Required |
270+
|:---------------:|:--------------:|:------------:|:-------------------:|:--------:|
271+
| database | Database | STRING | | true |
272+
| schema | Schema | STRING <details> <summary> Depends On </summary> database </details> | | true |
273+
| table | Table | STRING <details> <summary> Depends On </summary> schema </details> | | true |
274+
| column | Column | STRING | Column name that will be checked for condition. | true |
275+
| condition | Condition | STRING | Condition that will be checked in the column. | true |
276+
| values | Values | STRING | Updated values of the table. Seperated by comma. | true |
277+
278+
#### Example JSON Structure
279+
```json
280+
{
281+
"label" : "Update Row",
282+
"name" : "updateRow",
283+
"parameters" : {
284+
"database" : "",
285+
"schema" : "",
286+
"table" : "",
287+
"column" : "",
288+
"condition" : "",
289+
"values" : ""
290+
},
291+
"type" : "snowflake/v1/updateRow"
292+
}
293+
```
294+
295+
#### Output
296+
297+
298+
299+
Type: OBJECT
300+
301+
302+
#### Properties
303+
304+
| Name | Type | Description |
305+
|:------------:|:------------:|:-------------------:|
306+
| resultSetMetaData | OBJECT <details> <summary> Properties </summary> {INTEGER\(numRows), STRING\(format), [STRING\($name), STRING\($database), STRING\($schema), STRING\($table), {}\($scale), {}\($precision), INTEGER\($length), STRING\($type), BOOLEAN\($nullable), INTEGER\($byteLength), {}\($collation)]\(rowType), [INTEGER\($rowCount), INTEGER\($uncompressedSize)]\(partitionInfo)} </details> | |
307+
| data | ARRAY <details> <summary> Items </summary> [] </details> | |
308+
| code | STRING | |
309+
| statementStatusUrl | STRING | |
310+
| sqlState | STRING | |
311+
| statementHandle | STRING | |
312+
| message | STRING | |
313+
| createdOn | DATE | |
314+
| stats | ARRAY <details> <summary> Items </summary> [] </details> | |
315+
316+
317+
318+
319+
#### Output Example
320+
```json
321+
{
322+
"resultSetMetaData" : {
323+
"numRows" : 1,
324+
"format" : "",
325+
"rowType" : [ "", "", "", "", { }, { }, 1, "", false, 1, { } ],
326+
"partitionInfo" : [ 1, 1 ]
327+
},
328+
"data" : [ ],
329+
"code" : "",
330+
"statementStatusUrl" : "",
331+
"sqlState" : "",
332+
"statementHandle" : "",
333+
"message" : "",
334+
"createdOn" : "2021-01-01",
335+
"stats" : [ ]
336+
}
337+
```
338+
339+
340+
341+
342+
<hr />
343+
344+
# Additional instructions
345+
<hr />
346+

server/apps/server-app/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ dependencies {
273273
implementation(project(":server:libs:modules:components:sendgrid"))
274274
implementation(project(":server:libs:modules:components:shopify"))
275275
implementation(project(":server:libs:modules:components:slack"))
276+
implementation(project(":server:libs:modules:components:snowflake"))
276277
implementation(project(":server:libs:modules:components:spotify"))
277278
implementation(project(":server:libs:modules:components:stripe"))
278279
implementation(project(":server:libs:modules:components:supabase"))

server/ee/apps/worker-app/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ dependencies {
193193
implementation(project(":server:libs:modules:components:sendgrid"))
194194
implementation(project(":server:libs:modules:components:shopify"))
195195
implementation(project(":server:libs:modules:components:slack"))
196+
implementation(project(":server:libs:modules:components:snowflake"))
196197
implementation(project(":server:libs:modules:components:spotify"))
197198
implementation(project(":server:libs:modules:components:stripe"))
198199
implementation(project(":server:libs:modules:components:supabase"))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version="1.0"
2+
3+
dependencies {
4+
implementation(project(":server:libs:core:commons:commons-util"))
5+
}

0 commit comments

Comments
 (0)