Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExportTypeExcel = "excel" ExportTypeCsv = "csv" )
Variables ¶
View Source
var ErrExportTypeNotSupport = errors.New("不支持的导出类型")
Functions ¶
This section is empty.
Types ¶
type Callback ¶
type Callback func(et ExportType) error
type ExportConfig ¶
type ExportConfig struct {
IterationType IterationType
BatchSize int // 批量大小
SheetName string
}
type ExportType ¶
type ExportType string
func (ExportType) String ¶
func (t ExportType) String() string
type IterationType ¶
type IterationType int
IterationType 迭代方式枚举
const ( IterationCursor IterationType = iota // 游标迭代(推荐大数据量) IterationBatch // 批量查询 IterationAll // 一次性查询 )
Click to show internal directories.
Click to hide internal directories.