Documentation
¶
Overview ¶
Package export queries records for data exports.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrColType = errors.New("the value type is not usable with the mysql column") ErrDB = errors.New("database handle pointer cannot be nil") ErrNoTable = errors.New("unknown database table") ErrMethod = errors.New("unknown database export type") ErrNoMethod = errors.New("no database export type provided") ErrPointer = errors.New("pointer value cannot be nil") )
Functions ¶
Types ¶
type Flags ¶
type Flags struct {
Compress bool // Compress and save the output
CronJob bool // Run in an automated mode
Parallel bool // Run --table=all queries in parallel
Save bool // Save the output uncompressed
Table Table // Table of the database to use
Method Method // Method to export
Tables string // --table flag result
Type string // Type of export (create|update)
Version string // df2 app version pass-through
Limit uint // Limit the number of records
SQLDumps string // SQLDumps should be the value of config.SQLDumps
}
Flags are command line arguments.
func (*Flags) ExportTable ¶
ExportTable saves or prints a MySQL compatible SQL import table statement.
Click to show internal directories.
Click to hide internal directories.