Documentation ¶
Index ¶
Constants ¶
View Source
const NilFrequency = 10
NilFrequency ... nolint gomnd
View Source
const OneYear = int64(60 * 60 * 24 * 365)
OneYear ... nolint gomnd
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBSchema ¶
type DBSchema interface { Tables() ([]Table, error) TableColumns(table string) ([]TableColumn, error) // CompatibleDs returns the dataSourceName from various the compatible format. CompatibleDs() string Pump(table string, rowsPumped chan<- RowsPumped, config PumpConfig, ready chan bool, onerr string, retryMaxTimes int) error }
DBSchema ...
type PumpConfig ¶
type PumpConfig struct { ColumnsConfig map[string]PumpColumnConfig PumpMinRows int PumpMaxRows int BatchNum int }
PumpConfig ...
type RowsPumped ¶
type RowsPumped struct { Table string TotalRows int Rows int Cost time.Duration // contains filtered or unexported fields }
RowsPumped ...
func MakeRowsPumped ¶
func MakeRowsPumped(pumpTable string, totalRows int) *RowsPumped
MakeRowsPumped makes a new RowsPumped
type TableColumn ¶
type TableColumn interface { // GetName get the column's name. GetName() string // GetComment get the column's comment. GetComment() string // GetDataType get the columns's data type GetDataType() string // GetMaxSize get the max size of the column GetMaxSize() int // IsNullable tells if the column is nullable or not IsNullable() bool // GetRandomizer returns the randomizer of the column GetRandomizer() Randomizer // GetCharacterSet returns the CharacterSet of the column GetCharacterSet() string }
TableColumn describes a column in a table.
Click to show internal directories.
Click to hide internal directories.