diff --git a/drivers/sqlserver/sqlserver.go b/drivers/sqlserver/sqlserver.go index 73e0001f156..45d43e66d8e 100644 --- a/drivers/sqlserver/sqlserver.go +++ b/drivers/sqlserver/sqlserver.go @@ -12,6 +12,7 @@ import ( "strings" sqlserver "github.com/microsoft/go-mssqldb" // DRIVER + _ "github.com/microsoft/go-mssqldb/azuread" // needed for azuresql authentication "github.com/xo/usql/drivers" "github.com/xo/usql/drivers/metadata" ) diff --git a/go.mod b/go.mod index 5b9ff8b376b..9c5ddbf08fd 100644 --- a/go.mod +++ b/go.mod @@ -73,9 +73,11 @@ require ( github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect github.com/99designs/keyring v1.2.2 // indirect github.com/Azure/azure-sdk-for-go/sdk/azcore v1.7.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.3.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/internal v1.3.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0 // indirect github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v1.0.0 // indirect github.com/BurntSushi/toml v1.3.2 // indirect github.com/ClickHouse/ch-go v0.58.0 // indirect github.com/DATA-DOG/go-sqlmock v1.5.0 // indirect @@ -155,6 +157,7 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/godror/knownpb v0.1.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang-jwt/jwt/v4 v4.5.0 // indirect github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect github.com/golang-sql/sqlexp v0.1.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect @@ -196,6 +199,7 @@ require ( github.com/klauspost/cpuid/v2 v2.2.5 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect github.com/mattn/go-runewidth v0.0.15 // indirect github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect github.com/minio/asm2plan9s v0.0.0-20200509001527-cdd76441f9d8 // indirect