Skip to content

Commit

Permalink
Snow 1859664 add raiseputgeterror example to doc (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dszmolka authored Jan 16, 2025
1 parent 112ec24 commit 1663004
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1303,5 +1303,16 @@ Using custom configuration for PUT/GET:
If you want to override some default configuration options, you can use `WithFileTransferOptions` context.
There are multiple config parameters including progress bars or compression.
# Surfacing errors originating from PUT and GET commands
Default behaviour is to propagate the potential underlying errors encountered during executing calls associated with the PUT or GET commands to the caller, for increased awareness and easier handling or troubleshooting them.
The behaviour is governed by the `RaisePutGetError` flag on `SnowflakeFileTransferOptions` (default: `true`)
If you wish to ignore those errors instead, you can set `RaisePutGetError: false`. Example snippet:
ctx := WithFileTransferOptions(context.Background(), &SnowflakeFileTransferOptions{RaisePutGetError: false})
db.ExecContext(ctx, "PUT ...")
*/
package gosnowflake

0 comments on commit 1663004

Please sign in to comment.