databricks

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const TableName = "EXECUTE_DOCUMENTS"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DSN      string
	Host     string
	HttpPath string
	Token    string
	Catalog  string // optional
	Schema   string // optional
}

type Databricks

type Databricks struct {
	// contains filtered or unexported fields
}

func NewDatabricks

func NewDatabricks(dsn string, chunkSize int) (*Databricks, error)

func (*Databricks) CreateViews

func (d *Databricks) CreateViews(data execute.RootSchema) error

func (*Databricks) Prune

func (d *Databricks) Prune() error

func (*Databricks) Upload

func (d *Databricks) Upload(batch_date string, nextRecord func() (map[string]interface{}, error)) (int, error)

Upload implements the Database interface. It serializes records to CSV (like Snowflake), uploads to DBFS, and loads into the Databricks table.

Jump to

Keyboard shortcuts

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