databricks / databricks-sql-go

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

Expose dbsql.connOption type #201

Open shelldandy opened 2 months ago

shelldandy commented 2 months ago

That way we can programmatically add arguments to the NewConnector function instead of copy/pasting all of them across conditionals.

For extra context we'd like to not repeat code everywhere depending on whether or not we're using Oauth or AccessTokens since everything else is the same but we end up with 6 calls of the same pretty much code.