dbt

package
v0.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const TransformerType = abstract.TransformerType("dbt")

Variables

View Source
var IdentityMiddleware = func(s abstract.Sinker) abstract.Sinker { return s }
View Source
var NotSupportedErr = xerrors.New("DBT not supported")

Functions

func GlobalDataDirectory

func GlobalDataDirectory() string

func PluggableTransformer

func PluggableTransformer(transfer *model.Transfer, _ metrics.Registry, cp coordinator.Coordinator) func(abstract.Sinker) abstract.Sinker

func Register

func Register(f RegisterFunc)

Types

type Config

type Config struct {
	ProfileName       string
	GitBranch         string
	GitRepositoryLink string
	Operation         string
}

type RegisterFunc

type RegisterFunc = func(destination model.Destination) (SupportedDestination, error)

type SupportedDestination

type SupportedDestination interface {
	// DBTConfiguration provides a YAML-marshallable configuration of the target to be used by DBT.
	//
	// The object returned by this function must be the database-specific settings, namely the object inside `outputs`.
	// Other DBT parameters will be set automatically by the common code.
	DBTConfiguration(ctx context.Context) (any, error)
}

func ToSupportedDestination

func ToSupportedDestination(destination model.Destination) (SupportedDestination, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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