Skip to content

Commit cb9fc34

Browse files
committed
docs: Document Snowflake DML write support
Add write support section to Snowflake data connector docs documenting INSERT INTO, UPDATE, and DELETE operations with access: read_write.
1 parent 8a10283 commit cb9fc34

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

website/docs/components/data-connectors/snowflake.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,36 @@ The connector supports password-based and [key-pair](https://docs.snowflake.com/
215215
</TabItem>
216216
</Tabs>
217217

218+
## Write Support
219+
220+
This connector supports writing data to Snowflake tables using SQL [`INSERT INTO`](../../reference/sql/dml#insert), [`UPDATE`](../../reference/sql/dml#update), and [`DELETE FROM`](../../reference/sql/dml#delete) statements.
221+
222+
To enable writes, set `access: read_write` on the dataset:
223+
224+
```yaml
225+
datasets:
226+
- from: snowflake:DATABASE.SCHEMA.TABLE
227+
name: table
228+
access: read_write
229+
params:
230+
snowflake_warehouse: COMPUTE_WH
231+
snowflake_role: accountadmin
232+
```
233+
234+
```sql
235+
-- Insert rows
236+
INSERT INTO table (id, name, amount)
237+
VALUES (1, 'Alice', 100.0), (2, 'Bob', 200.0);
238+
239+
-- Update rows
240+
UPDATE table SET amount = 150.0 WHERE id = 1;
241+
242+
-- Delete rows
243+
DELETE FROM table WHERE id = 2;
244+
```
245+
246+
For more details, see [Data Ingestion](../../features/data-ingestion).
247+
218248
## Example
219249

220250
```yaml

0 commit comments

Comments
 (0)