tasks

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DbtConverterMeta = plugin.SubTaskMeta{
	Name:             "DbtConverter",
	EntryPoint:       DbtConverter,
	EnabledByDefault: true,
	Description:      "Convert data by dbt",
}
View Source
var GitMeta = plugin.SubTaskMeta{
	Name:             "Git",
	EntryPoint:       Git,
	EnabledByDefault: true,
	Description:      "Clone dbt project from git",
}

Functions

func DbtConverter

func DbtConverter(taskCtx plugin.SubTaskContext) (err errors.Error)

func Git

func Git(taskCtx plugin.SubTaskContext) errors.Error

Types

type DbtOptions

type DbtOptions struct {
	ProjectPath   string `json:"projectPath"`
	ProjectName   string `json:"projectName"`
	ProjectTarget string `json:"projectTarget"`
	// clone from git to projectPath if projectGitURL is not empty
	ProjectGitURL  string                 `json:"projectGitURL"`
	ProjectVars    map[string]interface{} `json:"projectVars"`
	SelectedModels []string               `json:"selectedModels"`
	FailFast       bool                   `json:"failFast"`
	ProfilesPath   string                 `json:"profilesPath"`
	Profile        string                 `json:"profile"`
	Threads        int                    `json:"threads"`
	NoVersionCheck bool                   `json:"noVersionCheck"`
	ExcludeModels  []string               `json:"excludeModels"`
	Selector       string                 `json:"selector"`
	State          string                 `json:"state"`
	Defer          bool                   `json:"defer"`
	NoDefer        bool                   `json:"noDefer"`
	FullRefresh    bool                   `json:"fullRefresh"`
	// deprecated, dbt run args
	Args  []string `json:"args"`
	Tasks []string `json:"tasks,omitempty"`
}

type DbtTaskData

type DbtTaskData struct {
	Options *DbtOptions
}

Jump to

Keyboard shortcuts

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