Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Version of this plugin for easy reference
Version = "1.0.2"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶ added in v0.3.3
type Data struct { Out io.Writer Connection *sql.DB IgnoreTables []string MaxAllowedPacket int LockTables bool // contains filtered or unexported fields }
Data struct to configure dump behavior
Out: Stream to wite to Connection: Database connection to dump IgnoreTables: Mark sensitive tables to ignore MaxAllowedPacket: Sets the largest packet size to use in backups LockTables: Lock all tables for the duration of the dump
func Register ¶
Register a new dumper.
db: Database that will be dumped (https://golang.org/pkg/database/sql/#DB). dir: Path to the directory where the dumps will be stored. format: Format to be used to name each dump file. Uses time.Time.Format (https://golang.org/pkg/time/#Time.Format). format appended with '.sql'.
Click to show internal directories.
Click to hide internal directories.