Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package dbsql

import (
"context"
"crypto/tls"
"database/sql/driver"
"fmt"
"net/http"
Expand Down Expand Up @@ -107,6 +108,13 @@ func withUserConfig(ucfg config.UserConfig) connOption {
}
}

// WithServerHostname sets up the server hostname. Mandatory.
func WithSkipInsecureSkipVerify(host string) connOption {
return func(c *config.Config) {
c.TLSConfig = &tls.Config{InsecureSkipVerify: true}
}
}

// WithServerHostname sets up the server hostname. Mandatory.
func WithServerHostname(host string) connOption {
return func(c *config.Config) {
Expand Down