dir_restorer

package
v0.0.0-...-9f91e3f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: BSD-3-Clause Imports: 21 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindTableColumns

func FindTableColumns(sql []byte, tableName string) []string

func FindTableCreate

func FindTableCreate(sql []byte, tableName string) string

Types

type DirRestorer

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

func NewDirRestorer

func NewDirRestorer(dir string) *DirRestorer

func (*DirRestorer) Connect

func (d *DirRestorer) Connect(dsn, db string) *DirRestorer

func (*DirRestorer) CreateTables

func (d *DirRestorer) CreateTables(create bool) *DirRestorer

func (*DirRestorer) Finish

func (d *DirRestorer) Finish() error

func (*DirRestorer) Prepare

func (d *DirRestorer) Prepare() error

func (DirRestorer) PrintStats

func (d DirRestorer) PrintStats(streams int, totalDuration time.Duration)

func (*DirRestorer) Restore

func (d *DirRestorer) Restore(tableName interface{})

func (*DirRestorer) Tables

func (d *DirRestorer) Tables() []string

func (*DirRestorer) TruncateTables

func (d *DirRestorer) TruncateTables(truncate bool) *DirRestorer

func (*DirRestorer) WithDryRun

func (d *DirRestorer) WithDryRun(dryRun bool) *DirRestorer

func (*DirRestorer) WithFilter

func (d *DirRestorer) WithFilter(filter filter.FilterSet) *DirRestorer

Jump to

Keyboard shortcuts

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