go-gorm / sqlserver

GORM sqlserver driver
MIT License
56 stars 39 forks source link

Azure Managed Identity support #78

Open natemccallum opened 1 year ago

natemccallum commented 1 year ago

Your Question

With the update to the driver (microsoft/go-mssqldb) I'd like to use connecting with Managed Identities. That method appears to require a connector passed to sql.OpenDB rather than the driver and DSN passed to sql.Open. Is connecting with Azure Managed Identities possible? https://github.com/microsoft/go-mssqldb/blob/main/examples/azuread-accesstoken/managed_identity.go

The document you expected this should be explained

https://gorm.io/docs/connecting_to_the_database.html

Expected answer

Yes or No and if yes, a sample.