{"modulePath":"github.com/databricks/databricks-sql-go/v2","version":"v2.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\nCommand kernel demonstrates the experimental SEA-via-kernel backend.\n\nThe kernel backend is opt-in and compiled in only under the databricks\\_kernel build tag with CGO enabled, and it links the Rust kernel static library. Build the library first, then run this example with the tag:\n\n\tmake -C ../.. kernel-lib                       # build the pinned kernel .a + header\n\tCGO_ENABLED=1 go run -tags databricks_kernel .\n\nWithout the tag, the program still compiles (it uses only the stable public API), but WithUseKernel(true) returns an error wrapping dbsqlerr.ErrKernelNotCompiled at connect — which this example detects and reports rather than treating as a hard failure.\n\nRequired environment (a .env file in this directory is loaded automatically):\n\n\tDATABRICKS_HOST         workspace hostname (no scheme)\n\tDATABRICKS_ACCESSTOKEN  personal access token\n\tDATABRICKS_HTTPPATH     warehouse http path (or set DATABRICKS_WAREHOUSEID)\n\tDATABRICKS_WAREHOUSEID  bare warehouse id (kernel routes by this when set)\n\n","path":"github.com/databricks/databricks-sql-go/v2/examples/kernel","name":"main","synopsis":"Command kernel demonstrates the experimental SEA-via-kernel backend.","isRedistributable":true}
