mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 08:58:09 +00:00
Update cheatsheets
This commit is contained in:
29
snowsql
Normal file
29
snowsql
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# snowsql
|
||||
|
||||
> SnowSQL command-line client for Snowflake's Data Cloud.
|
||||
> More information: <https://docs.snowflake.com/en/user-guide/snowsql.html>.
|
||||
|
||||
- Connect to a specific instance at <https://account.snowflakecomputing.com> (password can be provided in prompt or configuration file):
|
||||
|
||||
`snowsql --accountname {{account}} --username {{username}} --dbname {{database}} --schemaname {{schema}}`
|
||||
|
||||
- Connect to an instance specified by a specific configuration file (defaults to `~/.snowsql/config`):
|
||||
|
||||
`snowsql --config {{path/to/configuration_file}}`
|
||||
|
||||
- Connect to the default instance using a token for multi-factor authentication:
|
||||
|
||||
`snowsql --mfa-passcode {{token}}`
|
||||
|
||||
- Execute a single SQL query or SnowSQL command on the default connection (useful in shell scripts):
|
||||
|
||||
`snowsql --query '{{query}}'`
|
||||
|
||||
- Execute commands from a specific file on the default connection:
|
||||
|
||||
`snowsql --filename {{path/to/file.sql}}`
|
||||
Reference in New Issue
Block a user