Documentation
¶
Index ¶
- type ArchiveVehicleParams
- type CreateRegionParams
- type CreateSensorParams
- type CreateTreeClusterParams
- type CreateTreeParams
- type CreateVehicleParams
- type CreateWateringPlanParams
- type DBTX
- type DrivingLicense
- type FindNearestTreeParams
- type GetAllRegionsParams
- type GetAllSensorsParams
- type GetAllTreeClusterRegionsWithWateringPlanCountRow
- type GetAllTreeClustersParams
- type GetAllTreesCountParams
- type GetAllTreesParams
- type GetAllVehiclesByTypeCountParams
- type GetAllVehiclesByTypeParams
- type GetAllVehiclesByTypeWithArchivedCountParams
- type GetAllVehiclesByTypeWithArchivedParams
- type GetAllVehiclesParams
- type GetAllVehiclesWithArchivedParams
- type GetAllVehiclesWithWateringPlanCountRow
- type GetAllWateringPlansParams
- type GetTreeByCoordinatesParams
- type GetTreeClustersCountParams
- type GetVehicleByWateringPlanIDParams
- type InsertSensorDataParams
- type LinkTreesToTreeClusterParams
- type NullDrivingLicense
- type NullSensorStatus
- type NullTreeSoilCondition
- type NullVehicleStatus
- type NullVehicleType
- type NullWateringPlanStatus
- type NullWateringStatus
- type Querier
- type Queries
- func (q *Queries) ArchiveTreeCluster(ctx context.Context, id int32) (int32, error)
- func (q *Queries) ArchiveVehicle(ctx context.Context, arg *ArchiveVehicleParams) (int32, error)
- func (q *Queries) CalculateGroupedCentroids(ctx context.Context, dollar_1 []int32) (string, error)
- func (q *Queries) CalculateTreesCentroid(ctx context.Context, treeClusterID *int32) (string, error)
- func (q *Queries) CreateRegion(ctx context.Context, arg *CreateRegionParams) (int32, error)
- func (q *Queries) CreateSensor(ctx context.Context, arg *CreateSensorParams) (string, error)
- func (q *Queries) CreateTree(ctx context.Context, arg *CreateTreeParams) (int32, error)
- func (q *Queries) CreateTreeCluster(ctx context.Context, arg *CreateTreeClusterParams) (int32, error)
- func (q *Queries) CreateVehicle(ctx context.Context, arg *CreateVehicleParams) (int32, error)
- func (q *Queries) CreateWateringPlan(ctx context.Context, arg *CreateWateringPlanParams) (int32, error)
- func (q *Queries) DeleteAllTreeClusterFromWateringPlan(ctx context.Context, wateringPlanID int32) error
- func (q *Queries) DeleteAllUsersFromWateringPlan(ctx context.Context, wateringPlanID int32) error
- func (q *Queries) DeleteAllVehiclesFromWateringPlan(ctx context.Context, wateringPlanID int32) error
- func (q *Queries) DeleteRegion(ctx context.Context, id int32) error
- func (q *Queries) DeleteSensor(ctx context.Context, id string) error
- func (q *Queries) DeleteTree(ctx context.Context, id int32) (int32, error)
- func (q *Queries) DeleteTreeCluster(ctx context.Context, id int32) (int32, error)
- func (q *Queries) DeleteVehicle(ctx context.Context, id int32) (int32, error)
- func (q *Queries) DeleteWateringPlan(ctx context.Context, id int32) (int32, error)
- func (q *Queries) FindNearestTree(ctx context.Context, arg *FindNearestTreeParams) (*Tree, error)
- func (q *Queries) GetAllArchivedVehicles(ctx context.Context) ([]*Vehicle, error)
- func (q *Queries) GetAllLatestSensorDataByTreeClusterID(ctx context.Context, id int32) ([]*SensorDatum, error)
- func (q *Queries) GetAllRegions(ctx context.Context, arg *GetAllRegionsParams) ([]*Region, error)
- func (q *Queries) GetAllRegionsCount(ctx context.Context) (int64, error)
- func (q *Queries) GetAllSensorDataByID(ctx context.Context, sensorID string) ([]*SensorDatum, error)
- func (q *Queries) GetAllSensors(ctx context.Context, arg *GetAllSensorsParams) ([]*Sensor, error)
- func (q *Queries) GetAllSensorsCount(ctx context.Context, provider interface{}) (int64, error)
- func (q *Queries) GetAllTreeClusterRegionsWithWateringPlanCount(ctx context.Context) ([]*GetAllTreeClusterRegionsWithWateringPlanCountRow, error)
- func (q *Queries) GetAllTreeClusterWateringPlanByID(ctx context.Context, wateringPlanID int32) ([]*TreeClusterWateringPlan, error)
- func (q *Queries) GetAllTreeClusters(ctx context.Context, arg *GetAllTreeClustersParams) ([]*TreeCluster, error)
- func (q *Queries) GetAllTrees(ctx context.Context, arg *GetAllTreesParams) ([]*Tree, error)
- func (q *Queries) GetAllTreesCount(ctx context.Context, arg *GetAllTreesCountParams) (int64, error)
- func (q *Queries) GetAllUserWateringPlanCount(ctx context.Context) (int64, error)
- func (q *Queries) GetAllVehicles(ctx context.Context, arg *GetAllVehiclesParams) ([]*Vehicle, error)
- func (q *Queries) GetAllVehiclesByType(ctx context.Context, arg *GetAllVehiclesByTypeParams) ([]*Vehicle, error)
- func (q *Queries) GetAllVehiclesByTypeCount(ctx context.Context, arg *GetAllVehiclesByTypeCountParams) (int64, error)
- func (q *Queries) GetAllVehiclesByTypeWithArchived(ctx context.Context, arg *GetAllVehiclesByTypeWithArchivedParams) ([]*Vehicle, error)
- func (q *Queries) GetAllVehiclesByTypeWithArchivedCount(ctx context.Context, arg *GetAllVehiclesByTypeWithArchivedCountParams) (int64, error)
- func (q *Queries) GetAllVehiclesCount(ctx context.Context, provider interface{}) (int64, error)
- func (q *Queries) GetAllVehiclesWithArchived(ctx context.Context, arg *GetAllVehiclesWithArchivedParams) ([]*Vehicle, error)
- func (q *Queries) GetAllVehiclesWithArchivedCount(ctx context.Context, provider interface{}) (int64, error)
- func (q *Queries) GetAllVehiclesWithWateringPlanCount(ctx context.Context) ([]*GetAllVehiclesWithWateringPlanCountRow, error)
- func (q *Queries) GetAllWateringPlans(ctx context.Context, arg *GetAllWateringPlansParams) ([]*WateringPlan, error)
- func (q *Queries) GetAllWateringPlansCount(ctx context.Context, provider interface{}) (int64, error)
- func (q *Queries) GetLatestSensorDataByID(ctx context.Context, sensorID string) (*SensorDatum, error)
- func (q *Queries) GetLinkedTreesByTreeClusterID(ctx context.Context, id int32) ([]*Tree, error)
- func (q *Queries) GetRegionById(ctx context.Context, id int32) (*Region, error)
- func (q *Queries) GetRegionByName(ctx context.Context, name string) (*Region, error)
- func (q *Queries) GetRegionByPoint(ctx context.Context, stGeomfromtext interface{}) (*Region, error)
- func (q *Queries) GetRegionByTreeClusterID(ctx context.Context, id int32) (*Region, error)
- func (q *Queries) GetSensorByID(ctx context.Context, id string) (*Sensor, error)
- func (q *Queries) GetSensorByStatus(ctx context.Context, status SensorStatus) ([]*Sensor, error)
- func (q *Queries) GetSensorByTreeID(ctx context.Context, id int32) (*Sensor, error)
- func (q *Queries) GetTotalConsumedWater(ctx context.Context) (int64, error)
- func (q *Queries) GetTreeByCoordinates(ctx context.Context, arg *GetTreeByCoordinatesParams) (*Tree, error)
- func (q *Queries) GetTreeByID(ctx context.Context, id int32) (*Tree, error)
- func (q *Queries) GetTreeBySensorID(ctx context.Context, sensorID *string) (*Tree, error)
- func (q *Queries) GetTreeClusterByID(ctx context.Context, id int32) (*TreeCluster, error)
- func (q *Queries) GetTreeClusterByTreeID(ctx context.Context, id int32) (*TreeCluster, error)
- func (q *Queries) GetTreeClustersByWateringPlanID(ctx context.Context, wateringPlanID int32) ([]*TreeCluster, error)
- func (q *Queries) GetTreeClustersCount(ctx context.Context, arg *GetTreeClustersCountParams) (int64, error)
- func (q *Queries) GetTreesByIDs(ctx context.Context, dollar_1 []int32) ([]*Tree, error)
- func (q *Queries) GetTreesBySensorIDs(ctx context.Context, dollar_1 []string) ([]*Tree, error)
- func (q *Queries) GetTreesByTreeClusterID(ctx context.Context, treeClusterID *int32) ([]*Tree, error)
- func (q *Queries) GetTreesClustersByIDs(ctx context.Context, dollar_1 []int32) ([]*TreeCluster, error)
- func (q *Queries) GetUsersByWateringPlanID(ctx context.Context, wateringPlanID int32) ([]uuid.UUID, error)
- func (q *Queries) GetVehicleByID(ctx context.Context, id int32) (*Vehicle, error)
- func (q *Queries) GetVehicleByPlate(ctx context.Context, numberPlate string) (*Vehicle, error)
- func (q *Queries) GetVehicleByWateringPlanID(ctx context.Context, arg *GetVehicleByWateringPlanIDParams) (*Vehicle, error)
- func (q *Queries) GetWateringPlanByID(ctx context.Context, id int32) (*WateringPlan, error)
- func (q *Queries) InsertSensorData(ctx context.Context, arg *InsertSensorDataParams) error
- func (q *Queries) LinkTreesToTreeCluster(ctx context.Context, arg *LinkTreesToTreeClusterParams) error
- func (q *Queries) RemoveTreeClusterLocation(ctx context.Context, id int32) error
- func (q *Queries) SetSensorLocation(ctx context.Context, arg *SetSensorLocationParams) error
- func (q *Queries) SetTreeClusterLocation(ctx context.Context, arg *SetTreeClusterLocationParams) error
- func (q *Queries) SetTreeClusterToWateringPlan(ctx context.Context, arg *SetTreeClusterToWateringPlanParams) error
- func (q *Queries) SetTreeLocation(ctx context.Context, arg *SetTreeLocationParams) error
- func (q *Queries) SetUserToWateringPlan(ctx context.Context, arg *SetUserToWateringPlanParams) error
- func (q *Queries) SetVehicleToWateringPlan(ctx context.Context, arg *SetVehicleToWateringPlanParams) error
- func (q *Queries) UnlinkSensorIDFromTrees(ctx context.Context, sensorID *string) error
- func (q *Queries) UnlinkTreeClusterID(ctx context.Context, treeClusterID *int32) ([]int32, error)
- func (q *Queries) UpdateRegion(ctx context.Context, arg *UpdateRegionParams) error
- func (q *Queries) UpdateSensor(ctx context.Context, arg *UpdateSensorParams) error
- func (q *Queries) UpdateTree(ctx context.Context, arg *UpdateTreeParams) error
- func (q *Queries) UpdateTreeCluster(ctx context.Context, arg *UpdateTreeClusterParams) error
- func (q *Queries) UpdateTreeClusterID(ctx context.Context, arg *UpdateTreeClusterIDParams) error
- func (q *Queries) UpdateTreeClusterWateringPlan(ctx context.Context, arg *UpdateTreeClusterWateringPlanParams) error
- func (q *Queries) UpdateTreeGeometry(ctx context.Context, arg *UpdateTreeGeometryParams) error
- func (q *Queries) UpdateVehicle(ctx context.Context, arg *UpdateVehicleParams) error
- func (q *Queries) UpdateWateringPlan(ctx context.Context, arg *UpdateWateringPlanParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Region
- type Sensor
- type SensorDatum
- type SensorStatus
- type SetSensorLocationParams
- type SetTreeClusterLocationParams
- type SetTreeClusterToWateringPlanParams
- type SetTreeLocationParams
- type SetUserToWateringPlanParams
- type SetVehicleToWateringPlanParams
- type Tree
- type TreeCluster
- type TreeClusterWateringPlan
- type TreeSoilCondition
- type UpdateRegionParams
- type UpdateSensorParams
- type UpdateTreeClusterIDParams
- type UpdateTreeClusterParams
- type UpdateTreeClusterWateringPlanParams
- type UpdateTreeGeometryParams
- type UpdateTreeParams
- type UpdateVehicleParams
- type UpdateWateringPlanParams
- type UserWateringPlan
- type Vehicle
- type VehicleStatus
- type VehicleType
- type VehicleWateringPlan
- type WateringPlan
- type WateringPlanStatus
- type WateringStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveVehicleParams ¶
type CreateRegionParams ¶
type CreateRegionParams struct { Name string StGeomfromtext interface{} }
type CreateSensorParams ¶
type CreateTreeClusterParams ¶
type CreateTreeClusterParams struct { Name string RegionID *int32 Address string Description string MoistureLevel float64 WateringStatus WateringStatus SoilCondition TreeSoilCondition Provider *string AdditionalInformations []byte }
type CreateTreeParams ¶
type CreateVehicleParams ¶
type CreateVehicleParams struct { NumberPlate string Description string WaterCapacity float64 Type VehicleType Status VehicleStatus Model string DrivingLicense DrivingLicense Height float64 Length float64 Width float64 Weight float64 Provider *string AdditionalInformations []byte }
type DrivingLicense ¶
type DrivingLicense string
const ( DrivingLicenseB DrivingLicense = "B" DrivingLicenseBE DrivingLicense = "BE" DrivingLicenseC DrivingLicense = "C" DrivingLicenseCE DrivingLicense = "CE" )
func (*DrivingLicense) Scan ¶
func (e *DrivingLicense) Scan(src interface{}) error
type FindNearestTreeParams ¶
type FindNearestTreeParams struct { StMakepoint interface{} StMakepoint_2 interface{} }
type GetAllRegionsParams ¶
type GetAllSensorsParams ¶
type GetAllTreesCountParams ¶
type GetAllTreesParams ¶
type GetAllVehiclesByTypeCountParams ¶
type GetAllVehiclesByTypeCountParams struct { Type VehicleType Provider interface{} }
type GetAllVehiclesByTypeParams ¶
type GetAllVehiclesByTypeParams struct { Type VehicleType Limit int32 Offset int32 Provider interface{} }
type GetAllVehiclesByTypeWithArchivedCountParams ¶
type GetAllVehiclesByTypeWithArchivedCountParams struct { Type VehicleType Provider interface{} }
type GetAllVehiclesByTypeWithArchivedParams ¶
type GetAllVehiclesByTypeWithArchivedParams struct { Type VehicleType Limit int32 Offset int32 Provider interface{} }
type GetAllVehiclesParams ¶
type GetVehicleByWateringPlanIDParams ¶
type GetVehicleByWateringPlanIDParams struct { WateringPlanID int32 Type VehicleType }
type InsertSensorDataParams ¶
type NullDrivingLicense ¶
type NullDrivingLicense struct { DrivingLicense DrivingLicense Valid bool // Valid is true if DrivingLicense is not NULL }
func (*NullDrivingLicense) Scan ¶
func (ns *NullDrivingLicense) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullSensorStatus ¶
type NullSensorStatus struct { SensorStatus SensorStatus Valid bool // Valid is true if SensorStatus is not NULL }
func (*NullSensorStatus) Scan ¶
func (ns *NullSensorStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullTreeSoilCondition ¶
type NullTreeSoilCondition struct { TreeSoilCondition TreeSoilCondition Valid bool // Valid is true if TreeSoilCondition is not NULL }
func (*NullTreeSoilCondition) Scan ¶
func (ns *NullTreeSoilCondition) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullVehicleStatus ¶
type NullVehicleStatus struct { VehicleStatus VehicleStatus Valid bool // Valid is true if VehicleStatus is not NULL }
func (*NullVehicleStatus) Scan ¶
func (ns *NullVehicleStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullVehicleType ¶
type NullVehicleType struct { VehicleType VehicleType Valid bool // Valid is true if VehicleType is not NULL }
func (*NullVehicleType) Scan ¶
func (ns *NullVehicleType) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullWateringPlanStatus ¶
type NullWateringPlanStatus struct { WateringPlanStatus WateringPlanStatus Valid bool // Valid is true if WateringPlanStatus is not NULL }
func (*NullWateringPlanStatus) Scan ¶
func (ns *NullWateringPlanStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullWateringStatus ¶
type NullWateringStatus struct { WateringStatus WateringStatus Valid bool // Valid is true if WateringStatus is not NULL }
func (*NullWateringStatus) Scan ¶
func (ns *NullWateringStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { ArchiveTreeCluster(ctx context.Context, id int32) (int32, error) ArchiveVehicle(ctx context.Context, arg *ArchiveVehicleParams) (int32, error) CalculateGroupedCentroids(ctx context.Context, dollar_1 []int32) (string, error) CalculateTreesCentroid(ctx context.Context, treeClusterID *int32) (string, error) CreateRegion(ctx context.Context, arg *CreateRegionParams) (int32, error) CreateSensor(ctx context.Context, arg *CreateSensorParams) (string, error) CreateTree(ctx context.Context, arg *CreateTreeParams) (int32, error) CreateTreeCluster(ctx context.Context, arg *CreateTreeClusterParams) (int32, error) CreateVehicle(ctx context.Context, arg *CreateVehicleParams) (int32, error) CreateWateringPlan(ctx context.Context, arg *CreateWateringPlanParams) (int32, error) DeleteAllTreeClusterFromWateringPlan(ctx context.Context, wateringPlanID int32) error DeleteAllUsersFromWateringPlan(ctx context.Context, wateringPlanID int32) error DeleteAllVehiclesFromWateringPlan(ctx context.Context, wateringPlanID int32) error DeleteRegion(ctx context.Context, id int32) error DeleteSensor(ctx context.Context, id string) error DeleteTree(ctx context.Context, id int32) (int32, error) DeleteTreeCluster(ctx context.Context, id int32) (int32, error) DeleteVehicle(ctx context.Context, id int32) (int32, error) DeleteWateringPlan(ctx context.Context, id int32) (int32, error) FindNearestTree(ctx context.Context, arg *FindNearestTreeParams) (*Tree, error) GetAllArchivedVehicles(ctx context.Context) ([]*Vehicle, error) GetAllLatestSensorDataByTreeClusterID(ctx context.Context, id int32) ([]*SensorDatum, error) GetAllRegions(ctx context.Context, arg *GetAllRegionsParams) ([]*Region, error) GetAllRegionsCount(ctx context.Context) (int64, error) GetAllSensorDataByID(ctx context.Context, sensorID string) ([]*SensorDatum, error) GetAllSensors(ctx context.Context, arg *GetAllSensorsParams) ([]*Sensor, error) GetAllSensorsCount(ctx context.Context, provider interface{}) (int64, error) GetAllTreeClusterRegionsWithWateringPlanCount(ctx context.Context) ([]*GetAllTreeClusterRegionsWithWateringPlanCountRow, error) GetAllTreeClusterWateringPlanByID(ctx context.Context, wateringPlanID int32) ([]*TreeClusterWateringPlan, error) GetAllTreeClusters(ctx context.Context, arg *GetAllTreeClustersParams) ([]*TreeCluster, error) GetAllTrees(ctx context.Context, arg *GetAllTreesParams) ([]*Tree, error) GetAllTreesCount(ctx context.Context, arg *GetAllTreesCountParams) (int64, error) GetAllUserWateringPlanCount(ctx context.Context) (int64, error) GetAllVehicles(ctx context.Context, arg *GetAllVehiclesParams) ([]*Vehicle, error) GetAllVehiclesByType(ctx context.Context, arg *GetAllVehiclesByTypeParams) ([]*Vehicle, error) GetAllVehiclesByTypeCount(ctx context.Context, arg *GetAllVehiclesByTypeCountParams) (int64, error) GetAllVehiclesByTypeWithArchived(ctx context.Context, arg *GetAllVehiclesByTypeWithArchivedParams) ([]*Vehicle, error) GetAllVehiclesByTypeWithArchivedCount(ctx context.Context, arg *GetAllVehiclesByTypeWithArchivedCountParams) (int64, error) GetAllVehiclesCount(ctx context.Context, provider interface{}) (int64, error) GetAllVehiclesWithArchived(ctx context.Context, arg *GetAllVehiclesWithArchivedParams) ([]*Vehicle, error) GetAllVehiclesWithArchivedCount(ctx context.Context, provider interface{}) (int64, error) GetAllVehiclesWithWateringPlanCount(ctx context.Context) ([]*GetAllVehiclesWithWateringPlanCountRow, error) GetAllWateringPlans(ctx context.Context, arg *GetAllWateringPlansParams) ([]*WateringPlan, error) GetAllWateringPlansCount(ctx context.Context, provider interface{}) (int64, error) GetLatestSensorDataByID(ctx context.Context, sensorID string) (*SensorDatum, error) GetLinkedTreesByTreeClusterID(ctx context.Context, id int32) ([]*Tree, error) GetRegionById(ctx context.Context, id int32) (*Region, error) GetRegionByName(ctx context.Context, name string) (*Region, error) GetRegionByPoint(ctx context.Context, stGeomfromtext interface{}) (*Region, error) GetRegionByTreeClusterID(ctx context.Context, id int32) (*Region, error) GetSensorByID(ctx context.Context, id string) (*Sensor, error) GetSensorByStatus(ctx context.Context, status SensorStatus) ([]*Sensor, error) GetSensorByTreeID(ctx context.Context, id int32) (*Sensor, error) GetTotalConsumedWater(ctx context.Context) (int64, error) GetTreeByCoordinates(ctx context.Context, arg *GetTreeByCoordinatesParams) (*Tree, error) GetTreeByID(ctx context.Context, id int32) (*Tree, error) GetTreeBySensorID(ctx context.Context, sensorID *string) (*Tree, error) GetTreeClusterByID(ctx context.Context, id int32) (*TreeCluster, error) GetTreeClusterByTreeID(ctx context.Context, id int32) (*TreeCluster, error) GetTreeClustersByWateringPlanID(ctx context.Context, wateringPlanID int32) ([]*TreeCluster, error) GetTreeClustersCount(ctx context.Context, arg *GetTreeClustersCountParams) (int64, error) GetTreesByIDs(ctx context.Context, dollar_1 []int32) ([]*Tree, error) GetTreesBySensorIDs(ctx context.Context, dollar_1 []string) ([]*Tree, error) GetTreesByTreeClusterID(ctx context.Context, treeClusterID *int32) ([]*Tree, error) GetTreesClustersByIDs(ctx context.Context, dollar_1 []int32) ([]*TreeCluster, error) GetUsersByWateringPlanID(ctx context.Context, wateringPlanID int32) ([]uuid.UUID, error) GetVehicleByID(ctx context.Context, id int32) (*Vehicle, error) GetVehicleByPlate(ctx context.Context, numberPlate string) (*Vehicle, error) GetVehicleByWateringPlanID(ctx context.Context, arg *GetVehicleByWateringPlanIDParams) (*Vehicle, error) GetWateringPlanByID(ctx context.Context, id int32) (*WateringPlan, error) InsertSensorData(ctx context.Context, arg *InsertSensorDataParams) error LinkTreesToTreeCluster(ctx context.Context, arg *LinkTreesToTreeClusterParams) error RemoveTreeClusterLocation(ctx context.Context, id int32) error SetSensorLocation(ctx context.Context, arg *SetSensorLocationParams) error SetTreeClusterLocation(ctx context.Context, arg *SetTreeClusterLocationParams) error SetTreeClusterToWateringPlan(ctx context.Context, arg *SetTreeClusterToWateringPlanParams) error SetTreeLocation(ctx context.Context, arg *SetTreeLocationParams) error SetUserToWateringPlan(ctx context.Context, arg *SetUserToWateringPlanParams) error SetVehicleToWateringPlan(ctx context.Context, arg *SetVehicleToWateringPlanParams) error UnlinkSensorIDFromTrees(ctx context.Context, sensorID *string) error UnlinkTreeClusterID(ctx context.Context, treeClusterID *int32) ([]int32, error) UpdateRegion(ctx context.Context, arg *UpdateRegionParams) error UpdateSensor(ctx context.Context, arg *UpdateSensorParams) error UpdateTree(ctx context.Context, arg *UpdateTreeParams) error UpdateTreeCluster(ctx context.Context, arg *UpdateTreeClusterParams) error UpdateTreeClusterID(ctx context.Context, arg *UpdateTreeClusterIDParams) error UpdateTreeClusterWateringPlan(ctx context.Context, arg *UpdateTreeClusterWateringPlanParams) error UpdateTreeGeometry(ctx context.Context, arg *UpdateTreeGeometryParams) error UpdateVehicle(ctx context.Context, arg *UpdateVehicleParams) error UpdateWateringPlan(ctx context.Context, arg *UpdateWateringPlanParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ArchiveTreeCluster ¶
func (*Queries) ArchiveVehicle ¶
func (*Queries) CalculateGroupedCentroids ¶
func (*Queries) CalculateTreesCentroid ¶
func (*Queries) CreateRegion ¶
func (*Queries) CreateSensor ¶
func (*Queries) CreateTree ¶
func (*Queries) CreateTreeCluster ¶
func (*Queries) CreateVehicle ¶
func (*Queries) CreateWateringPlan ¶
func (*Queries) DeleteAllTreeClusterFromWateringPlan ¶
func (*Queries) DeleteAllUsersFromWateringPlan ¶
func (*Queries) DeleteAllVehiclesFromWateringPlan ¶
func (*Queries) DeleteTree ¶
func (*Queries) DeleteTreeCluster ¶
func (*Queries) DeleteVehicle ¶
func (*Queries) DeleteWateringPlan ¶
func (*Queries) FindNearestTree ¶
func (*Queries) GetAllArchivedVehicles ¶
func (*Queries) GetAllLatestSensorDataByTreeClusterID ¶
func (*Queries) GetAllRegions ¶
func (*Queries) GetAllRegionsCount ¶
func (*Queries) GetAllSensorDataByID ¶
func (*Queries) GetAllSensors ¶
func (*Queries) GetAllSensorsCount ¶
func (*Queries) GetAllTreeClusterRegionsWithWateringPlanCount ¶
func (q *Queries) GetAllTreeClusterRegionsWithWateringPlanCount(ctx context.Context) ([]*GetAllTreeClusterRegionsWithWateringPlanCountRow, error)
func (*Queries) GetAllTreeClusterWateringPlanByID ¶
func (*Queries) GetAllTreeClusters ¶
func (q *Queries) GetAllTreeClusters(ctx context.Context, arg *GetAllTreeClustersParams) ([]*TreeCluster, error)
func (*Queries) GetAllTrees ¶
func (*Queries) GetAllTreesCount ¶
func (*Queries) GetAllUserWateringPlanCount ¶
func (*Queries) GetAllVehicles ¶
func (*Queries) GetAllVehiclesByType ¶
func (*Queries) GetAllVehiclesByTypeCount ¶
func (*Queries) GetAllVehiclesByTypeWithArchived ¶
func (*Queries) GetAllVehiclesByTypeWithArchivedCount ¶
func (*Queries) GetAllVehiclesCount ¶
func (*Queries) GetAllVehiclesWithArchived ¶
func (*Queries) GetAllVehiclesWithArchivedCount ¶
func (*Queries) GetAllVehiclesWithWateringPlanCount ¶
func (q *Queries) GetAllVehiclesWithWateringPlanCount(ctx context.Context) ([]*GetAllVehiclesWithWateringPlanCountRow, error)
func (*Queries) GetAllWateringPlans ¶
func (q *Queries) GetAllWateringPlans(ctx context.Context, arg *GetAllWateringPlansParams) ([]*WateringPlan, error)
func (*Queries) GetAllWateringPlansCount ¶
func (*Queries) GetLatestSensorDataByID ¶
func (*Queries) GetLinkedTreesByTreeClusterID ¶
func (*Queries) GetRegionById ¶
func (*Queries) GetRegionByName ¶
func (*Queries) GetRegionByPoint ¶
func (*Queries) GetRegionByTreeClusterID ¶
func (*Queries) GetSensorByID ¶
func (*Queries) GetSensorByStatus ¶
func (*Queries) GetSensorByTreeID ¶
func (*Queries) GetTotalConsumedWater ¶
func (*Queries) GetTreeByCoordinates ¶
func (*Queries) GetTreeByID ¶
func (*Queries) GetTreeBySensorID ¶
func (*Queries) GetTreeClusterByID ¶
func (*Queries) GetTreeClusterByTreeID ¶
func (*Queries) GetTreeClustersByWateringPlanID ¶
func (*Queries) GetTreeClustersCount ¶
func (*Queries) GetTreesByIDs ¶
func (*Queries) GetTreesBySensorIDs ¶
func (*Queries) GetTreesByTreeClusterID ¶
func (*Queries) GetTreesClustersByIDs ¶
func (*Queries) GetUsersByWateringPlanID ¶
func (*Queries) GetVehicleByID ¶
func (*Queries) GetVehicleByPlate ¶
func (*Queries) GetVehicleByWateringPlanID ¶
func (*Queries) GetWateringPlanByID ¶
func (*Queries) InsertSensorData ¶
func (q *Queries) InsertSensorData(ctx context.Context, arg *InsertSensorDataParams) error
func (*Queries) LinkTreesToTreeCluster ¶
func (q *Queries) LinkTreesToTreeCluster(ctx context.Context, arg *LinkTreesToTreeClusterParams) error
func (*Queries) RemoveTreeClusterLocation ¶
func (*Queries) SetSensorLocation ¶
func (q *Queries) SetSensorLocation(ctx context.Context, arg *SetSensorLocationParams) error
func (*Queries) SetTreeClusterLocation ¶
func (q *Queries) SetTreeClusterLocation(ctx context.Context, arg *SetTreeClusterLocationParams) error
func (*Queries) SetTreeClusterToWateringPlan ¶
func (q *Queries) SetTreeClusterToWateringPlan(ctx context.Context, arg *SetTreeClusterToWateringPlanParams) error
func (*Queries) SetTreeLocation ¶
func (q *Queries) SetTreeLocation(ctx context.Context, arg *SetTreeLocationParams) error
func (*Queries) SetUserToWateringPlan ¶
func (q *Queries) SetUserToWateringPlan(ctx context.Context, arg *SetUserToWateringPlanParams) error
func (*Queries) SetVehicleToWateringPlan ¶
func (q *Queries) SetVehicleToWateringPlan(ctx context.Context, arg *SetVehicleToWateringPlanParams) error
func (*Queries) UnlinkSensorIDFromTrees ¶
func (*Queries) UnlinkTreeClusterID ¶
func (*Queries) UpdateRegion ¶
func (q *Queries) UpdateRegion(ctx context.Context, arg *UpdateRegionParams) error
func (*Queries) UpdateSensor ¶
func (q *Queries) UpdateSensor(ctx context.Context, arg *UpdateSensorParams) error
func (*Queries) UpdateTree ¶
func (q *Queries) UpdateTree(ctx context.Context, arg *UpdateTreeParams) error
func (*Queries) UpdateTreeCluster ¶
func (q *Queries) UpdateTreeCluster(ctx context.Context, arg *UpdateTreeClusterParams) error
func (*Queries) UpdateTreeClusterID ¶
func (q *Queries) UpdateTreeClusterID(ctx context.Context, arg *UpdateTreeClusterIDParams) error
func (*Queries) UpdateTreeClusterWateringPlan ¶
func (q *Queries) UpdateTreeClusterWateringPlan(ctx context.Context, arg *UpdateTreeClusterWateringPlanParams) error
func (*Queries) UpdateTreeGeometry ¶
func (q *Queries) UpdateTreeGeometry(ctx context.Context, arg *UpdateTreeGeometryParams) error
func (*Queries) UpdateVehicle ¶
func (q *Queries) UpdateVehicle(ctx context.Context, arg *UpdateVehicleParams) error
func (*Queries) UpdateWateringPlan ¶
func (q *Queries) UpdateWateringPlan(ctx context.Context, arg *UpdateWateringPlanParams) error
type SensorDatum ¶
type SensorStatus ¶
type SensorStatus string
const ( SensorStatusOnline SensorStatus = "online" SensorStatusOffline SensorStatus = "offline" SensorStatusUnknown SensorStatus = "unknown" )
func (*SensorStatus) Scan ¶
func (e *SensorStatus) Scan(src interface{}) error
type SetSensorLocationParams ¶
type SetTreeLocationParams ¶
type Tree ¶
type Tree struct { ID int32 CreatedAt time.Time UpdatedAt time.Time TreeClusterID *int32 SensorID *string PlantingYear int32 Species string Number string Latitude float64 Longitude float64 WateringStatus WateringStatus Geometry *geos.Geom Description *string Provider *string AdditionalInformations []byte LastWatered *time.Time }
type TreeCluster ¶
type TreeCluster struct { ID int32 CreatedAt time.Time UpdatedAt time.Time WateringStatus WateringStatus LastWatered *time.Time MoistureLevel float64 Address string Description string Archived bool SoilCondition TreeSoilCondition Latitude *float64 Longitude *float64 Geometry *geos.Geom RegionID *int32 Name string Provider *string AdditionalInformations []byte }
type TreeClusterWateringPlan ¶
type TreeSoilCondition ¶
type TreeSoilCondition string
const ( TreeSoilConditionSchluffig TreeSoilCondition = "schluffig" TreeSoilConditionSandig TreeSoilCondition = "sandig" TreeSoilConditionLehmig TreeSoilCondition = "lehmig" TreeSoilConditionTonig TreeSoilCondition = "tonig" TreeSoilConditionUnknown TreeSoilCondition = "unknown" )
func (*TreeSoilCondition) Scan ¶
func (e *TreeSoilCondition) Scan(src interface{}) error
type UpdateRegionParams ¶
type UpdateSensorParams ¶
type UpdateSensorParams struct { ID string Status SensorStatus Provider *string AdditionalInformations []byte }
type UpdateTreeClusterParams ¶
type UpdateTreeGeometryParams ¶
type UpdateTreeGeometryParams struct { ID int32 StGeomfromtext interface{} }
type UpdateTreeParams ¶
type UpdateVehicleParams ¶
type UpdateVehicleParams struct { ID int32 NumberPlate string Description string WaterCapacity float64 Type VehicleType Status VehicleStatus Model string DrivingLicense DrivingLicense Height float64 Length float64 Width float64 Weight float64 Provider *string AdditionalInformations []byte }
type UserWateringPlan ¶
type Vehicle ¶
type Vehicle struct { ID int32 CreatedAt time.Time UpdatedAt time.Time NumberPlate string Description string WaterCapacity float64 Type VehicleType Status VehicleStatus Model string DrivingLicense DrivingLicense Height float64 Length float64 Width float64 Weight float64 Provider *string AdditionalInformations []byte ArchivedAt *time.Time }
type VehicleStatus ¶
type VehicleStatus string
const ( VehicleStatusActive VehicleStatus = "active" VehicleStatusAvailable VehicleStatus = "available" VehicleStatusNotavailable VehicleStatus = "not available" VehicleStatusUnknown VehicleStatus = "unknown" )
func (*VehicleStatus) Scan ¶
func (e *VehicleStatus) Scan(src interface{}) error
type VehicleType ¶
type VehicleType string
const ( VehicleTypeTransporter VehicleType = "transporter" VehicleTypeTrailer VehicleType = "trailer" VehicleTypeUnknown VehicleType = "unknown" )
func (*VehicleType) Scan ¶
func (e *VehicleType) Scan(src interface{}) error
type VehicleWateringPlan ¶
type WateringPlan ¶
type WateringPlan struct { ID int32 CreatedAt time.Time UpdatedAt time.Time Date time.Time Description string Status WateringPlanStatus Distance *float64 TotalWaterRequired *float64 CancellationNote string GpxUrl *string RefillCount int32 Duration float64 Provider *string AdditionalInformations []byte }
type WateringPlanStatus ¶
type WateringPlanStatus string
const ( WateringPlanStatusPlanned WateringPlanStatus = "planned" WateringPlanStatusActive WateringPlanStatus = "active" WateringPlanStatusCanceled WateringPlanStatus = "canceled" WateringPlanStatusFinished WateringPlanStatus = "finished" WateringPlanStatusNotcompeted WateringPlanStatus = "not competed" WateringPlanStatusUnknown WateringPlanStatus = "unknown" )
func (*WateringPlanStatus) Scan ¶
func (e *WateringPlanStatus) Scan(src interface{}) error
type WateringStatus ¶
type WateringStatus string
const ( WateringStatusGood WateringStatus = "good" WateringStatusModerate WateringStatus = "moderate" WateringStatusBad WateringStatus = "bad" WateringStatusUnknown WateringStatus = "unknown" WateringStatusJustwatered WateringStatus = "just watered" )
func (*WateringStatus) Scan ¶
func (e *WateringStatus) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.