restorers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBufferSize = 1024 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobsRestorer

type BlobsRestorer struct {
	Entry *toc.Entry
	St    storages.Storager
	// contains filtered or unexported fields
}

func NewBlobsRestorer

func NewBlobsRestorer(entry *toc.Entry, st storages.Storager, usePgzip bool) *BlobsRestorer

func (*BlobsRestorer) DebugInfo

func (td *BlobsRestorer) DebugInfo() string

func (*BlobsRestorer) Execute

func (td *BlobsRestorer) Execute(ctx context.Context, conn *pgx.Conn) error

func (*BlobsRestorer) GetEntry added in v0.2.0

func (td *BlobsRestorer) GetEntry() *toc.Entry

type RestoreTask

type RestoreTask interface {
	Execute(ctx context.Context, conn *pgx.Conn) error
	DebugInfo() string
	GetEntry() *toc.Entry
}

type SequenceRestorer

type SequenceRestorer struct {
	Entry *toc.Entry
}

func NewSequenceRestorer

func NewSequenceRestorer(entry *toc.Entry) *SequenceRestorer

func (*SequenceRestorer) DebugInfo

func (td *SequenceRestorer) DebugInfo() string

func (*SequenceRestorer) Execute

func (td *SequenceRestorer) Execute(ctx context.Context, conn *pgx.Conn) error

func (*SequenceRestorer) GetEntry added in v0.2.0

func (td *SequenceRestorer) GetEntry() *toc.Entry

type TableRestorer

type TableRestorer struct {
	Entry *toc.Entry
	St    storages.Storager
	// contains filtered or unexported fields
}

func NewTableRestorer

func NewTableRestorer(
	entry *toc.Entry, st storages.Storager, exitOnError bool, usePgzip bool, batchSize int64,
) *TableRestorer

func (*TableRestorer) DebugInfo

func (td *TableRestorer) DebugInfo() string

func (*TableRestorer) Execute

func (td *TableRestorer) Execute(ctx context.Context, conn *pgx.Conn) error

func (*TableRestorer) GetEntry added in v0.2.0

func (td *TableRestorer) GetEntry() *toc.Entry

type TableRestorerInsertFormat added in v0.2.0

type TableRestorerInsertFormat struct {
	Entry *toc.Entry
	Table *toolkit.Table
	St    storages.Storager
	// contains filtered or unexported fields
}

func NewTableRestorerInsertFormat added in v0.2.0

func NewTableRestorerInsertFormat(
	entry *toc.Entry, t *toolkit.Table, st storages.Storager, exitOnError bool,
	doNothing bool, exclusions *domains.DataRestorationErrorExclusions,
	usePgzip bool, overridingSystemValue bool,
) *TableRestorerInsertFormat

func (*TableRestorerInsertFormat) DebugInfo added in v0.2.0

func (td *TableRestorerInsertFormat) DebugInfo() string

func (*TableRestorerInsertFormat) Execute added in v0.2.0

func (td *TableRestorerInsertFormat) Execute(ctx context.Context, conn *pgx.Conn) error

func (*TableRestorerInsertFormat) GetEntry added in v0.2.0

func (td *TableRestorerInsertFormat) GetEntry() *toc.Entry

Jump to

Keyboard shortcuts

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