Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: get example query in the documentation has the parameters swapped #711

Merged
4 changes: 2 additions & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -958,12 +958,12 @@
The following example shows how to run a GET command by passing a string to the
db.Query() function:

db.Query("GET file://<local_file> <stage_identifier> <optional_parameters>")
db.Query("GET <internal_stage_identifier> file://<local_file> <optional_parameters>")

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AWS Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.19 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.20 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / AZURE Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement

Check failure on line 962 in doc.go

View workflow job for this annotation

GitHub Actions / GCP Go 1.21 on Windows

package comment is detached; there should be no blank lines between it and the package statement
"<local_file>" should include the file path as well as the name. Snowflake recommends using
an absolute path rather than a relative path. For example:

db.Query("GET file:///tmp/my_data_file @~ auto_compress=false overwrite=false")
db.Query("GET @~ file:///tmp/my_data_file auto_compress=false overwrite=false")

## Specifying temporary directory for encryption and compression

Expand Down
Loading