mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
snowsql: add page (#9519)
This commit is contained in:
parent
85c7973277
commit
1c621f5132
2 changed files with 48 additions and 0 deletions
24
pages.pl/common/snowsql.md
Normal file
24
pages.pl/common/snowsql.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# snowsql
|
||||
|
||||
> Narzędzie wiersza SnowSQL serwisu bazodanowego Snowflake.
|
||||
> Więcej informacji: <https://docs.snowflake.com/en/user-guide/snowsql.html>.
|
||||
|
||||
- Połącz z konkretną instancją pod adresem <https://konto.snowflakecomputing.com> (hasło może być wprowadzone w wierszu polecenia lub pliku konfiguracyjnym):
|
||||
|
||||
`snowsql --accountname {{konto}} --username {{użytkownik}} --dbname {{baza_danych}} --schemaname {{nazwa_schematu}}`
|
||||
|
||||
- Połącz się z instancją zdefiniowaną w pliku konfiguracyjnym (domyślnie w `~/.snowsql/config`):
|
||||
|
||||
`snowsql --config {{ścieżka/do/pliku_konfiguracyjnego}}`
|
||||
|
||||
- Połącz się z domyślnie zdefiniowaną instancją, podając kod autentykacji drugiego poziomu:
|
||||
|
||||
`snowsql --mfa-passcode {{kod_podwójnej_weryfikacji}}`
|
||||
|
||||
- Wykonaj pojedyncze zapytanie lub komendę SnowSQL na domyślnym połączeniu (użyteczne w skryptach powłoki):
|
||||
|
||||
`snowsql --query '{{zapytanie}}'`
|
||||
|
||||
- Wykonaj zapytania lub komendy z konkretnego pliku:
|
||||
|
||||
`snowsql --filename {{ścieżka/do/pliku.sql}}`
|
24
pages/common/snowsql.md
Normal file
24
pages/common/snowsql.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue