Skip to content

Commit 0e01460

Browse files
authored
SNOW-845282: Add docs about tmpDirPath (#884)
1 parent 5e4e7e1 commit 0e01460

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc.go

+11-2
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ See the following for information on the syntax and supported parameters:
869869
- PUT: https://docs.snowflake.com/en/sql-reference/sql/put.html
870870
- GET: https://docs.snowflake.com/en/sql-reference/sql/get.html
871871
872-
# Using PUT
872+
## Using PUT
873873
874874
The following example shows how to run a PUT command by passing a string to the
875875
db.Query() function:
@@ -905,7 +905,7 @@ To send information from a stream (rather than a file) use code similar to the c
905905
906906
Note: PUT statements are not supported for multi-statement queries.
907907
908-
# Using GET
908+
## Using GET
909909
910910
The following example shows how to run a GET command by passing a string to the
911911
db.Query() function:
@@ -916,5 +916,14 @@ db.Query() function:
916916
an absolute path rather than a relative path. For example:
917917
918918
db.Query("GET file:///tmp/my_data_file @~ auto_compress=false overwrite=false")
919+
920+
## Specifying temporary directory for encryption and compression
921+
922+
Putting and getting requires compression and/or encryption, which is done in the OS temporary directory.
923+
If you cannot use default temporary directory for your OS or you want to specify it yourself, you can use "tmpDirPath" DSN parameter.
924+
Remember, to encode slashes.
925+
Example:
926+
927+
u:[email protected]/db/s?account=a.r.c&tmpDirPath=%2Fother%2Ftmp
919928
*/
920929
package gosnowflake

0 commit comments

Comments
 (0)