@@ -26,9 +26,9 @@ Version: 1
26
26
27
27
| Name | Label | Type | Description | Required |
28
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 |
29
+ | account_identifier | Account Identifier | STRING | Account identifier of your account . | true |
30
+ | clientId | Client ID | STRING | Snowflake OAuth Client ID. | true |
31
+ | clientSecret | Client Secret | STRING | Snowflake OAuth Client Secret. | true |
32
32
33
33
34
34
@@ -53,8 +53,7 @@ Delete row from the table.
53
53
| database | Database | STRING | | true |
54
54
| schema | Schema | STRING <details > <summary > Depends On </summary > database </details > | | true |
55
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 |
56
+ | condition | Condition | STRING | Condition that will be checked in the column. Example: column1=5 | true |
58
57
59
58
#### Example JSON Structure
60
59
``` json
@@ -65,7 +64,6 @@ Delete row from the table.
65
64
"database" : " " ,
66
65
"schema" : " " ,
67
66
"table" : " " ,
68
- "column" : " " ,
69
67
"condition" : " "
70
68
},
71
69
"type" : " snowflake/v1/deleteRow"
@@ -197,7 +195,7 @@ Insert row into the table.
197
195
| database | Database | STRING | | true |
198
196
| schema | Schema | STRING <details > <summary > Depends On </summary > database </details > | | true |
199
197
| 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 |
198
+ | values | | DYNAMIC_PROPERTIES < details > < summary > Depends On </ summary > table </ details > | | true |
201
199
202
200
#### Example JSON Structure
203
201
``` json
@@ -208,7 +206,7 @@ Insert row into the table.
208
206
"database" : " " ,
209
207
"schema" : " " ,
210
208
"table" : " " ,
211
- "values" : " "
209
+ "values" : { }
212
210
},
213
211
"type" : " snowflake/v1/insertRow"
214
212
}
@@ -271,9 +269,8 @@ Update row from the table.
271
269
| database | Database | STRING | | true |
272
270
| schema | Schema | STRING <details > <summary > Depends On </summary > database </details > | | true |
273
271
| 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 |
272
+ | condition | Condition | STRING | Condition that will be checked in the column. Example: column1=5 | true |
273
+ | values | | DYNAMIC_PROPERTIES <details > <summary > Depends On </summary > table </details > | | true |
277
274
278
275
#### Example JSON Structure
279
276
``` json
@@ -284,9 +281,8 @@ Update row from the table.
284
281
"database" : " " ,
285
282
"schema" : " " ,
286
283
"table" : " " ,
287
- "column" : " " ,
288
284
"condition" : " " ,
289
- "values" : " "
285
+ "values" : { }
290
286
},
291
287
"type" : " snowflake/v1/updateRow"
292
288
}
@@ -344,3 +340,24 @@ Type: OBJECT
344
340
# Additional instructions
345
341
<hr />
346
342
343
+ After creating you Snowflake account, you have to create SECURITY INTEGRATION.
344
+ https://docs.snowflake.com/en/sql-reference/sql/create-security-integration-oauth-snowflake
345
+ 1. Create SQL Worksheet
346
+ 2. Change <name > and <callback url > to fit your application.
347
+ CREATE SECURITY INTEGRATION <name >
348
+ TYPE = oauth
349
+ ENABLED = true
350
+ OAUTH_CLIENT = custom
351
+ OAUTH_CLIENT_TYPE = 'CONFIDENTIAL'
352
+ OAUTH_REDIRECT_URI = '<callback url >'
353
+ OAUTH_ISSUE_REFRESH_TOKENS = TRUE
354
+ OAUTH_ALLOW_NON_TLS_REDIRECT_URI = true
355
+ OAUTH_REFRESH_TOKEN_VALIDITY = 86400;
356
+ 3. Run the SQL Worksheet.
357
+
358
+ To get your Client ID and Client Secret:
359
+ https://docs.snowflake.com/sql-reference/functions/system_show_oauth_client_secrets
360
+ 1. Create SQL Worksheet
361
+ 2. Change <name > to name of your security integration:
362
+ select system$show_oauth_client_secrets( '<name >' )
363
+ 3. Run the SQL Worksheet
0 commit comments