Documentation ¶
Index ¶
- func NewAreaEventQueryMysql(db *sql.DB) query.AreaEvent
- func NewAreaReadQueryMysql(db *sql.DB) query.AreaRead
- func NewCropReadQueryMysql(db *sql.DB) query.CropRead
- func NewFarmEventQueryMysql(db *sql.DB) query.FarmEvent
- func NewFarmReadQueryMysql(db *sql.DB) query.FarmRead
- func NewMaterialEventQueryMysql(db *sql.DB) query.MaterialEvent
- func NewMaterialReadQueryMysql(db *sql.DB) query.MaterialRead
- func NewReservoirEventQueryMysql(db *sql.DB) query.ReservoirEvent
- func NewReservoirReadQueryMysql(db *sql.DB) query.ReservoirRead
- type AreaEventQueryMysql
- type AreaReadQueryMysql
- func (s AreaReadQueryMysql) CountAreas(farmUID uuid.UUID) <-chan query.Result
- func (s AreaReadQueryMysql) FindAllByFarm(farmUID uuid.UUID) <-chan query.Result
- func (s AreaReadQueryMysql) FindAreasByReservoirID(reservoirUID uuid.UUID) <-chan query.Result
- func (s AreaReadQueryMysql) FindByID(uid uuid.UUID) <-chan query.Result
- func (s AreaReadQueryMysql) FindByIDAndFarm(areaUID, farmUID uuid.UUID) <-chan query.Result
- type CropReadQueryMysql
- type FarmEventQueryMysql
- type FarmReadQueryMysql
- type MaterialEventQueryMysql
- type MaterialReadQueryMysql
- func (q MaterialReadQueryMysql) CountAll(materialType, materialTypeDetail string) <-chan query.Result
- func (q MaterialReadQueryMysql) FindAll(materialType, materialTypeDetail string, page, limit int) <-chan query.Result
- func (q MaterialReadQueryMysql) FindByID(materialUID uuid.UUID) <-chan query.Result
- type ReservoirEventQueryMysql
- type ReservoirReadQueryMysql
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (*AreaEventQueryMysql) FindAllByID ¶
func (f *AreaEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result
type AreaReadQueryMysql ¶
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 ¶
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 ¶
func (*FarmEventQueryMysql) FindAllByID ¶
func (f *FarmEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result
type FarmReadQueryMysql ¶
func (FarmReadQueryMysql) FindAll ¶
func (s FarmReadQueryMysql) FindAll() <-chan query.Result
type MaterialEventQueryMysql ¶
func (*MaterialEventQueryMysql) FindAllByID ¶
func (f *MaterialEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result
type MaterialReadQueryMysql ¶
func (MaterialReadQueryMysql) CountAll ¶
func (q MaterialReadQueryMysql) CountAll(materialType, materialTypeDetail string) <-chan query.Result
type ReservoirEventQueryMysql ¶
func (*ReservoirEventQueryMysql) FindAllByID ¶
func (f *ReservoirEventQueryMysql) FindAllByID(uid uuid.UUID) <-chan query.Result
type ReservoirReadQueryMysql ¶
func (ReservoirReadQueryMysql) FindAllByFarm ¶
func (s ReservoirReadQueryMysql) FindAllByFarm(farmUID uuid.UUID) <-chan query.Result
Click to show internal directories.
Click to hide internal directories.