Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
Layout mysql table layout definition
func GenerateLayout ¶
GenerateLayout generate a new layout
func (*Layout) GenInsertStmtValues ¶
GenInsertStmtValues generate insert row DML
func (*Layout) GetCreateStmt ¶
GetCreateStmt get create table DDL
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row mysql table row
func (*Row) GetColVals ¶
GetColVals return column values via string
type TableChunk ¶
type TableChunk struct {
// contains filtered or unexported fields
}
TableChunk table data chunk struct
func NewTableChunk ¶
func NewTableChunk(layout Layout, batchSize uint64) TableChunk
NewTableChunk generate batch rows
func (*TableChunk) GenInsertStmt ¶
func (t *TableChunk) GenInsertStmt() string
GenInsertStmt get statement of insertion all rows
func (*TableChunk) GetRowsNum ¶
func (t *TableChunk) GetRowsNum() uint64
GetRowsNum get number of rows
Click to show internal directories.
Click to hide internal directories.