exporter

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExporter

func NewExporter(ctx context.Context, opts *connectors.Options, name string, config map[string]string) (exporter.Exporter, error)

Types

type Exporter

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

func (*Exporter) Close

func (p *Exporter) Close(ctx context.Context) error

func (*Exporter) Export

func (p *Exporter) Export(ctx context.Context, records <-chan *connectors.Record, results chan<- *connectors.Result) error

Export restores each record to the configured PostgreSQL server. Records ending in ".dump" are restored via pg_restore (pg_dump custom format). Records ending in ".sql" are fed to psql (pg_dumpall plain-SQL format).

func (*Exporter) Flags

func (p *Exporter) Flags() location.Flags

func (*Exporter) Origin

func (p *Exporter) Origin() string

func (*Exporter) Ping

func (p *Exporter) Ping(ctx context.Context) error

func (*Exporter) Root

func (p *Exporter) Root() string

func (*Exporter) Type

func (p *Exporter) Type() string

Jump to

Keyboard shortcuts

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