exporter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOutputWriter

func GetOutputWriter(out string) (io.WriteCloser, error)

GetOutputWriter opens and returns an io.WriteCloser for the output options or nil if none is set. The caller is responsible for closing it.

Types

type DBExporter

type DBExporter interface {
	Export() (int64, error)
}

type Exporter

type Exporter struct {
	Args      []string
	TableName string
	ProjectID string
	CreatedAt time.Time
	Out       string
}

func (*Exporter) Export

func (ex *Exporter) Export(ctx context.Context, exportRepo datastore.ExportRepository) (int64, error)

Jump to

Keyboard shortcuts

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