task

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityResult

type ActivityResult struct {
	Import *ImportActivityResult
	Export *ExportActivityResult
}

func NewActivityResult

func NewActivityResult() *ActivityResult

func (*ActivityResult) Merge

func (r *ActivityResult) Merge(that *ActivityResult)

type ActivityRunParams

type ActivityRunParams struct {
	Activity config.Activity
	Schema   *schema.Schema
	Conn     *conn.Connection
}

type ActivityRunner

type ActivityRunner interface {
	Run(ctx context.Context, params *ActivityRunParams) (*ActivityResult, error)
}

type CompositeActivityRunner

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

func NewCompositeActivityRunner

func NewCompositeActivityRunner(
	exportRunner *ExportActivityRunner,
	importRunner *ImportActivityRunner,
) *CompositeActivityRunner

func (*CompositeActivityRunner) Run

type ExportActivityResult

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

func (*ExportActivityResult) GetFiles

func (r *ExportActivityResult) GetFiles() []fs.FileInfo

type ExportActivityRunner

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

func NewExportActivityRunner

func NewExportActivityRunner(
	fs fs.Driver,
	renderer *template.Renderer,
	exporters map[config.ExporterName]exporter.Exporter,
) *ExportActivityRunner

func (*ExportActivityRunner) Run

type ImportActivityResult

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

func (*ImportActivityResult) GetFiles

func (r *ImportActivityResult) GetFiles() []exporter.ImportedFile

func (*ImportActivityResult) GetTableRowCountMap

func (r *ImportActivityResult) GetTableRowCountMap() map[string]int64

type ImportActivityRunner

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

func NewImportActivityRunner

func NewImportActivityRunner(fs fs.Driver, importers map[config.ImporterName]exporter.Importer) *ImportActivityRunner

func (*ImportActivityRunner) Run

Jump to

Keyboard shortcuts

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