Documentation
¶
Index ¶
- func CloseDBs(dbs []*sql.DB)
- func CreateDBs(cfg DBConfig, count int) ([]*sql.DB, error)
- func DoProcess(table *Table, dbs []*sql.DB, jobCount int, workerCount int, batch int)
- func ExecSQL(db *sql.DB, sql string) error
- func GenRowData(table *Table) (string, error)
- func ParseIndexSQL(table *Table, sql string) error
- func ParseTableSQL(table *Table, sql string) error
- type Config
- type DBConfig
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// inherit from flag.FlagSet, ignore all the fields from parent
*flag.FlagSet `json:"-"`
TableSQL string `toml:"table-sql" json:"table-sql"`
IndexSQL string `toml:"index-sql" json:"index-sql"`
LogLevel string `toml:"log-level" json:"log-level"`
WorkerCount int `toml:"worker-count" json:"worker-count"`
JobCount int `toml:"job-count" json:"job-count"`
Batch int `toml:"batch" json:"batch"`
DBCfg DBConfig `toml:"db" json:"db"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.