databricks / databricks-sql-go

Golang database/sql driver for Databricks SQL.
Apache License 2.0
37 stars 41 forks source link

Connect: Expose option to set protocol #140

Closed MovieStoreGuy closed 9 months ago

MovieStoreGuy commented 1 year ago

Context

The method WithServerHostname will configure the protocol used to http if the value provided is localhost, however, it can be possible to try connector a compliant databricks service via a local proxy that does the TLS termination.

Diagram

service --> reverse proxy --> service

Outcomes

I am open to either outcome of:

rcypher-databricks commented 1 year ago

Just to verify: you are not using a dsn to connect, you are using NewConnector().

MovieStoreGuy commented 1 year ago

Yes, sorry that is correct.

rcypher-databricks commented 1 year ago

Version 1.4.0 has been released and allows for including http or https protocol when using WithServerHostname ex. WithServerHostname("http:my.server.name")

rcypher-databricks commented 9 months ago

Unless there are still problems with this we will close this issue.