We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8d714b commit 2c788e0Copy full SHA for 2c788e0
1 file changed
connector.go
@@ -8,6 +8,7 @@ import (
8
"strings"
9
"time"
10
11
+ "github.com/databricks/databricks-sql-go/auth"
12
"github.com/databricks/databricks-sql-go/auth/pat"
13
"github.com/databricks/databricks-sql-go/driverctx"
14
dbsqlerr "github.com/databricks/databricks-sql-go/errors"
@@ -206,3 +207,10 @@ func WithSessionParams(params map[string]string) connOption {
206
207
c.SessionParams = params
208
}
209
210
+
211
+// WithAuthenticator sets up the Authentication. Mandatory if access token is not provided.
212
+func WithAuthenticator(authr auth.Authenticator) connOption {
213
+ return func(c *config.Config) {
214
+ c.Authenticator = authr
215
+ }
216
+}
0 commit comments