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: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAreaEventQueryMysql

func NewAreaEventQueryMysql(db *sql.DB) query.AreaEvent

func NewAreaReadQueryMysql

func NewAreaReadQueryMysql(db *sql.DB) query.AreaRead

func NewCropReadQueryMysql

func NewCropReadQueryMysql(db *sql.DB) query.CropRead

func NewFarmEventQueryMysql

func NewFarmEventQueryMysql(db *sql.DB) query.FarmEvent

func NewFarmReadQueryMysql

func NewFarmReadQueryMysql(db *sql.DB) query.FarmRead

func NewMaterialEventQueryMysql

func NewMaterialEventQueryMysql(db *sql.DB) query.MaterialEvent

func NewMaterialReadQueryMysql

func NewMaterialReadQueryMysql(db *sql.DB) query.MaterialRead

func NewReservoirEventQueryMysql

func NewReservoirEventQueryMysql(db *sql.DB) query.ReservoirEvent

func NewReservoirReadQueryMysql

func NewReservoirReadQueryMysql(db *sql.DB) query.ReservoirRead

Types

type AreaEventQueryMysql

type AreaEventQueryMysql struct {
	DB *sql.DB
}

func (*AreaEventQueryMysql) FindAllByID

func (f *AreaEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result

type AreaReadQueryMysql

type AreaReadQueryMysql struct {
	DB *sql.DB
}

func (AreaReadQueryMysql) CountAreas

func (s AreaReadQueryMysql) CountAreas(farmUID uuid.UUID) <-chan query.Result

func (AreaReadQueryMysql) FindAllByFarm

func (s AreaReadQueryMysql) FindAllByFarm(farmUID uuid.UUID) <-chan query.Result

func (AreaReadQueryMysql) FindAreasByReservoirID

func (s AreaReadQueryMysql) FindAreasByReservoirID(reservoirUID uuid.UUID) <-chan query.Result

func (AreaReadQueryMysql) FindByID

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

func (AreaReadQueryMysql) FindByIDAndFarm

func (s AreaReadQueryMysql) FindByIDAndFarm(areaUID, farmUID uuid.UUID) <-chan query.Result

type CropReadQueryMysql

type CropReadQueryMysql struct {
	DB *sql.DB
}

func (CropReadQueryMysql) CountCropsByArea

func (q CropReadQueryMysql) CountCropsByArea(areaUID uuid.UUID) <-chan query.Result

func (CropReadQueryMysql) FindAllCropByArea

func (q CropReadQueryMysql) FindAllCropByArea(areaUID uuid.UUID) <-chan query.Result

type FarmEventQueryMysql

type FarmEventQueryMysql struct {
	DB *sql.DB
}

func (*FarmEventQueryMysql) FindAllByID

func (f *FarmEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result

type FarmReadQueryMysql

type FarmReadQueryMysql struct {
	DB *sql.DB
}

func (FarmReadQueryMysql) FindAll

func (s FarmReadQueryMysql) FindAll() <-chan query.Result

func (FarmReadQueryMysql) FindByID

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

type MaterialEventQueryMysql

type MaterialEventQueryMysql struct {
	DB *sql.DB
}

func (*MaterialEventQueryMysql) FindAllByID

func (f *MaterialEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result

type MaterialReadQueryMysql

type MaterialReadQueryMysql struct {
	DB *sql.DB
}

func (MaterialReadQueryMysql) CountAll

func (q MaterialReadQueryMysql) CountAll(materialType, materialTypeDetail string) <-chan query.Result

func (MaterialReadQueryMysql) FindAll

func (q MaterialReadQueryMysql) FindAll(materialType, materialTypeDetail string, page, limit int) <-chan query.Result

func (MaterialReadQueryMysql) FindByID

func (q MaterialReadQueryMysql) FindByID(materialUID uuid.UUID) <-chan query.Result

type ReservoirEventQueryMysql

type ReservoirEventQueryMysql struct {
	DB *sql.DB
}

func (*ReservoirEventQueryMysql) FindAllByID

func (f *ReservoirEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result

type ReservoirReadQueryMysql

type ReservoirReadQueryMysql struct {
	DB *sql.DB
}

func (ReservoirReadQueryMysql) FindAllByFarm

func (s ReservoirReadQueryMysql) FindAllByFarm(farmUID uuid.UUID) <-chan query.Result

func (ReservoirReadQueryMysql) FindByID

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

Jump to

Keyboard shortcuts

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