Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (26 loc) · 1.19 KB

README.md

File metadata and controls

30 lines (26 loc) · 1.19 KB

Databricks

This library is a Go client for the Databricks REST API V2. It's designed to be a minimal client with few dependencies.

Authentication

This library makes little attempts to handle authentication for you. It probably needs some more thought on how it should work. For now you can inject your own http.Client to handle authentication for you. You can find more information of how Databricks handles authentication for details on how to generate tokens.

Hacking

There is some work to still be done in handling date times. Currently the client does the lazy method of just using int64s in most cases (as the Databricks API generally uses epoch nanos).

Features

The client library supports injecting your own http.Client using the ClientHTTPClient function. There is a special client for using .netrc. The netrc client can be easily used:

client, err := databricks.NewClient(
    "<client_id>",
    databricks.ClientHTTPClient(databricks.NetrcHTTPClient),
)