Documentation ¶
Index ¶
- func FindTableColumns(sql []byte, tableName string) []string
- func FindTableCreate(sql []byte, tableName string) string
- type DirRestorer
- func (d *DirRestorer) Connect(dsn, db string) *DirRestorer
- func (d *DirRestorer) CreateTables(create bool) *DirRestorer
- func (d *DirRestorer) Finish() error
- func (d *DirRestorer) Prepare() error
- func (d DirRestorer) PrintStats(streams int, totalDuration time.Duration)
- func (d *DirRestorer) Restore(tableName interface{})
- func (d *DirRestorer) Tables() []string
- func (d *DirRestorer) TruncateTables(truncate bool) *DirRestorer
- func (d *DirRestorer) WithDryRun(dryRun bool) *DirRestorer
- func (d *DirRestorer) WithFilter(filter filter.FilterSet) *DirRestorer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindTableColumns ¶
func FindTableCreate ¶
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
Click to show internal directories.
Click to hide internal directories.