databricks

package
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

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

func NewDriver

func NewDriver(alloc memory.Allocator) adbc.Driver

NewDriver creates a new Databricks driver using the given Arrow allocator.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL