chore(kb/snowflake): add commands

This commit is contained in:
Michele Cereda
2025-05-15 07:40:57 +02:00
parent e9bff96f47
commit 64d537a32c

View File

@@ -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;
```
</details>
<!-- Uncomment if used