Documentation ¶
Index ¶
- Variables
- func Parse(r io.Reader, h ParseHandler) error
- type Dumper
- func (d *Dumper) AddDatabases(dbs ...string)
- func (d *Dumper) AddIgnoreTables(db string, tables ...string)
- func (d *Dumper) AddTables(db string, tables ...string)
- func (d *Dumper) Dump(w io.Writer) error
- func (d *Dumper) DumpAndParse(h ParseHandler) error
- func (d *Dumper) Reset()
- func (d *Dumper) SetErrOut(o io.Writer)
- type ParseHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSkip = errors.New("Handler error, but skipped")
)
Functions ¶
Types ¶
type Dumper ¶
type Dumper struct { // mysqldump execution path, like mysqldump or /usr/bin/mysqldump, etc... ExecutionPath string Addr string User string Password string // Will override Databases Tables []string TableDB string Databases []string IgnoreTables map[string][]string ErrOut io.Writer }
Unlick mysqldump, Dumper is designed for parsing and syning data easily.
func (*Dumper) AddDatabases ¶
func (*Dumper) AddIgnoreTables ¶
func (*Dumper) DumpAndParse ¶
func (d *Dumper) DumpAndParse(h ParseHandler) error
Dump MySQL and parse immediately
Click to show internal directories.
Click to hide internal directories.