Commit 0e01460 1 parent 5e4e7e1 commit 0e01460 Copy full SHA for 0e01460
File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -869,7 +869,7 @@ See the following for information on the syntax and supported parameters:
869
869
- PUT: https://docs.snowflake.com/en/sql-reference/sql/put.html
870
870
- GET: https://docs.snowflake.com/en/sql-reference/sql/get.html
871
871
872
- # Using PUT
872
+ ## Using PUT
873
873
874
874
The following example shows how to run a PUT command by passing a string to the
875
875
db.Query() function:
@@ -905,7 +905,7 @@ To send information from a stream (rather than a file) use code similar to the c
905
905
906
906
Note: PUT statements are not supported for multi-statement queries.
907
907
908
- # Using GET
908
+ ## Using GET
909
909
910
910
The following example shows how to run a GET command by passing a string to the
911
911
db.Query() function:
@@ -916,5 +916,14 @@ db.Query() function:
916
916
an absolute path rather than a relative path. For example:
917
917
918
918
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
919
928
*/
920
929
package gosnowflake
You can’t perform that action at this time.
0 commit comments