mysql

package
v0.0.0-...-ae75a06 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAreaQueryMysql

func NewAreaQueryMysql(db *sql.DB) query.Area

func NewCropQueryMysql

func NewCropQueryMysql(db *sql.DB) query.Crop

func NewMaterialQueryMysql

func NewMaterialQueryMysql(db *sql.DB) query.Material

func NewReservoirQueryMysql

func NewReservoirQueryMysql(db *sql.DB) query.Reservoir

func NewTaskEventQueryMysql

func NewTaskEventQueryMysql(db *sql.DB) query.TaskEvent

func NewTaskReadQueryMysql

func NewTaskReadQueryMysql(s *sql.DB) query.TaskRead

Types

type AreaQueryMysql

type AreaQueryMysql struct {
	DB *sql.DB
}

func (AreaQueryMysql) FindByID

func (s AreaQueryMysql) FindByID(uid uuid.UUID) <-chan query.Result

type CropQueryMysql

type CropQueryMysql struct {
	DB *sql.DB
}

func (CropQueryMysql) FindCropByID

func (s CropQueryMysql) FindCropByID(uid uuid.UUID) <-chan query.Result

type MaterialQueryMysql

type MaterialQueryMysql struct {
	DB *sql.DB
}

func (MaterialQueryMysql) FindMaterialByID

func (s MaterialQueryMysql) FindMaterialByID(uid uuid.UUID) <-chan query.Result

type ReservoirQueryMysql

type ReservoirQueryMysql struct {
	DB *sql.DB
}

func (ReservoirQueryMysql) FindReservoirByID

func (s ReservoirQueryMysql) FindReservoirByID(uid uuid.UUID) <-chan query.Result

type TaskEventQueryMysql

type TaskEventQueryMysql struct {
	DB *sql.DB
}

func (*TaskEventQueryMysql) FindAllByTaskID

func (f *TaskEventQueryMysql) FindAllByTaskID(uid uuid.UUID) <-chan query.Result

type TaskReadQueryMysql

type TaskReadQueryMysql struct {
	DB *sql.DB
}

func (TaskReadQueryMysql) CountAll

func (q TaskReadQueryMysql) CountAll() <-chan query.Result

func (TaskReadQueryMysql) CountTasksWithFilter

func (q TaskReadQueryMysql) CountTasksWithFilter(params map[string]string) <-chan query.Result

func (TaskReadQueryMysql) FindAll

func (q TaskReadQueryMysql) FindAll(page, limit int) <-chan query.Result

func (TaskReadQueryMysql) FindByID

func (q TaskReadQueryMysql) FindByID(uid uuid.UUID) <-chan query.Result

FindByID is to find by ID.

func (TaskReadQueryMysql) FindTasksWithFilter

func (q TaskReadQueryMysql) FindTasksWithFilter(params map[string]string, page, limit int) <-chan query.Result

Jump to

Keyboard shortcuts

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