Documentation
¶
Overview ¶
Package databricks is an ADBC Driver Implementation for Databricks SQL using databricks-sql-go as the underlying SQL driver.
It can be used to register a driver for database/sql by importing github.com/apache/arrow-adbc/go/adbc/sqldriver and running:
sql.Register("databricks", sqldriver.Driver{databricks.Driver{}})
You can then open a databricks connection with the database/sql standard package by using:
db, err := sql.Open("databricks", "token=<token>&hostname=<hostname>&port=<port>&httpPath=<path>")
Index ¶
Constants ¶
View Source
const ( DEFAULT_PORT = 443 DEFAULT_RETRY_WAIT_MIN = 1 * time.Second DEFAULT_RETRY_WAIT_MAX = 30 * time.Second )
View Source
const ( // Connection options OptionServerHostname = "databricks.server_hostname" OptionHTTPPath = "databricks.http_path" OptionAccessToken = "databricks.access_token" OptionPort = "databricks.port" OptionCatalog = "databricks.catalog" OptionSchema = "databricks.schema" // Query options OptionQueryTimeout = "databricks.query.timeout" OptionMaxRows = "databricks.query.max_rows" OptionQueryRetryCount = "databricks.query.retry_count" OptionDownloadThreadCount = "databricks.download_thread_count" // TLS/SSL options OptionSSLMode = "databricks.ssl_mode" OptionSSLRootCert = "databricks.ssl_root_cert" // OAuth options (for future expansion) OptionOAuthClientID = "databricks.oauth.client_id" OptionOAuthClientSecret = "databricks.oauth.client_secret" OptionOAuthRefreshToken = "databricks.oauth.refresh_token" // Default values DefaultPort = 443 DefaultSSLMode = "require" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.