dao

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMysqlDirectUpload

func InitMysqlDirectUpload(ctx context.Context)

Types

type InputDataDao

type InputDataDao struct {
	*gorm.DB
}

func NewInputDataDao

func NewInputDataDao(ctx context.Context) *InputDataDao

func (*InputDataDao) BatchCreateInputData

func (d *InputDataDao) BatchCreateInputData(in []*model.InputData) (err error)

func (*InputDataDao) CreateInputData

func (d *InputDataDao) CreateInputData(in *model.InputData) (err error)

func (*InputDataDao) ListInputData

func (d *InputDataDao) ListInputData() (in []*model.InputData, err error)

func (*InputDataDao) UpdateInputDataByIds

func (d *InputDataDao) UpdateInputDataByIds(ids []int64) (err error)

type MySqlDirectUpload

type MySqlDirectUpload struct {
	// contains filtered or unexported fields
}
var GobalMysqlDirectUpload *MySqlDirectUpload

func NewMySqlDirectUpload

func NewMySqlDirectUpload(ctx context.Context, task *types.Task) *MySqlDirectUpload

NewMySqlDirectUpload 新建一个上传的对象

func (*MySqlDirectUpload) Finish

func (d *MySqlDirectUpload) Finish()

func (*MySqlDirectUpload) Push

func (d *MySqlDirectUpload) Push(records *model.InputData) int

func (*MySqlDirectUpload) StreamUpload

func (d *MySqlDirectUpload) StreamUpload() (count int, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL