table_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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Builder

func Builder(in chan []string, out chan string)

Types

type LineReader

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

func NewReader

func NewReader(input io.Reader) *LineReader

func (*LineReader) Parse

func (r *LineReader) Parse(row chan []interface{})

type Restorer

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

func New

func New(dsn, tableName string, columns []string) *Restorer

func (*Restorer) Run

func (r *Restorer) Run(in io.Reader, conn *sqlx.DB) (stats, error)

func (*Restorer) WithDryRun

func (r *Restorer) WithDryRun(dryRun bool) *Restorer

func (*Restorer) WithFilter

func (r *Restorer) WithFilter(filter filter.BoolExpr) *Restorer

Jump to

Keyboard shortcuts

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