Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dumper ¶
type Dumper interface {
// DumpStructure dumps database structure given a sql.
DumpStructure(sql string) error
// DumpTable dumps a table by name.
DumpTable(tableName string, rowChan <-chan database.Row) error
// Close closes the dumper resources and releases them.
Close() error
}
Dumper is the dump engine.
type Engine ¶
type Engine struct {
Dumper
// contains filtered or unexported fields
}
Engine is the engine which dispatches and orchestrates a dump.
type Hooker ¶
type Hooker interface {
// PreDumpTables performs a action before dumping tables before dumping tables.
PreDumpTables([]string) error
// PostDumpTables performs a action after dumping tables before dumping tables.
PostDumpTables([]string) error
}
Hooker are the actions you perform before or after a specified database operation.
Click to show internal directories.
Click to hide internal directories.