databricks

command
v0.0.0-...-efe30ab Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Example: lake-orm against a Databricks SQL warehouse using the native `databricks-sql-go` driver. Bring-your-own-connection — lake-orm doesn't own OAuth, warehouse selection, or connection pooling; you construct the *sql.DB exactly as your environment requires and hand it to driver/databricks.

Required env:

DATABRICKS_WORKSPACE_HOST   e.g. "acme.cloud.databricks.com"
DATABRICKS_WAREHOUSE_ID     e.g. "0123456789abcdef"
DATABRICKS_CLIENT_ID        OAuth M2M client ID (service principal)
DATABRICKS_CLIENT_SECRET    OAuth M2M client secret
DATABRICKS_CATALOG          e.g. "main"
DATABRICKS_SCHEMA           e.g. "analytics"

Authentication, session config, and connection-pool sizing are Databricks-specific knobs that every deployment tunes differently. The reference implementation in svc-data-platform-api/internal/datalake documents the set that works at production scale; this example is the minimum viable wiring.

Jump to

Keyboard shortcuts

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