From 64d537a32c3aa3a71a1581c6d80e05d307278cbe Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 15 May 2025 07:40:57 +0200 Subject: [PATCH] chore(kb/snowflake): add commands --- knowledge base/snowflake.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/knowledge base/snowflake.md b/knowledge base/snowflake.md index a1e4ea2..e42c660 100644 --- a/knowledge base/snowflake.md +++ b/knowledge base/snowflake.md @@ -78,10 +78,30 @@ snow helpers -h # List configured connections to Snowflake. snow connection list +# Add connections. +snow connection add + +# Test connections. +snow connection test +snow connection test -c 'connection-name' + # Executes Snowflake queries. snow sql ``` +```sql +SHOW USERS; +SHOW USERS LIKE '%john%'; + +CREATE USER alice; +CREATE USER IF NOT EXISTS bob; +CREATE OR REPLACE USER claude + PASSWORD='somePassword' DISPLAY_NAME='Claude' EMAIL='claude@example.org' + LOGIN_NAME='CLAUDE@EXAMPLE.ORG' MUST_CHANGE_PASSWORD=TRUE; + +GRANT ROLE someRole TO USER diane; +``` +