Skip to content

Commit

Permalink
New constants.go file
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Kim <11141331+mattdeekay@users.noreply.github.com>
  • Loading branch information
mattdeekay committed Jan 13, 2023
1 parent 9dd574d commit 117cf03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package dbsql

// DriverVersion is databricks sql go connector's version
const DriverVersion = "1.0.1"
3 changes: 2 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package config
import (
"crypto/tls"
"fmt"
dbsql "github.com/databricks/databricks-sql-go"
"net/url"
"strconv"
"strings"
Expand Down Expand Up @@ -152,7 +153,7 @@ func WithDefaults() *Config {
PingTimeout: 15 * time.Second,
CanUseMultipleCatalogs: true,
DriverName: "godatabrickssqlconnector", // important. Do not change
DriverVersion: "1.0.1",
DriverVersion: dbsql.DriverVersion,
ThriftProtocol: "binary",
ThriftTransport: "http",
ThriftProtocolVersion: cli_service.TProtocolVersion_SPARK_CLI_SERVICE_PROTOCOL_V6,
Expand Down

0 comments on commit 117cf03

Please sign in to comment.