Documentation ¶
Index ¶
- type PlantRepo
- type SpecimenRepo
- type SqlPlantRepo
- type SqlSpecimenRepo
- func (self SqlSpecimenRepo) GetAllSpecimensForTheYear() ([]models.Specimen, error)
- func (self SqlSpecimenRepo) GetSpecimenById(id uint32) (models.Specimen, error)
- func (self SqlSpecimenRepo) SaveSpecimen(specimen models.Specimen) (models.Specimen, error)
- func (self SqlSpecimenRepo) UpdateSpecimen(updatedSpecimen models.Specimen) (models.Specimen, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpecimenRepo ¶
type SqlPlantRepo ¶
type SqlPlantRepo struct {
// contains filtered or unexported fields
}
func CreateSqlPlantRepo ¶
func CreateSqlPlantRepo(database *sql.DB) SqlPlantRepo
func (SqlPlantRepo) GetAllPlants ¶
func (self SqlPlantRepo) GetAllPlants() ([]models.Plant, error)
func (SqlPlantRepo) GetPlantByName ¶
func (self SqlPlantRepo) GetPlantByName(name string) (models.Plant, error)
type SqlSpecimenRepo ¶
type SqlSpecimenRepo struct {
// contains filtered or unexported fields
}
func CreateRepo ¶
func CreateRepo(database *sql.DB) SqlSpecimenRepo
func (SqlSpecimenRepo) GetAllSpecimensForTheYear ¶
func (self SqlSpecimenRepo) GetAllSpecimensForTheYear() ([]models.Specimen, error)
func (SqlSpecimenRepo) GetSpecimenById ¶
func (self SqlSpecimenRepo) GetSpecimenById(id uint32) (models.Specimen, error)
func (SqlSpecimenRepo) SaveSpecimen ¶
func (SqlSpecimenRepo) UpdateSpecimen ¶
Click to show internal directories.
Click to hide internal directories.