implementations

package
v0.53.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RubricsPostgresRepository

type RubricsPostgresRepository struct {
	Connection *sql.DB
}

func GetRubricsPgRepository

func GetRubricsPgRepository() *RubricsPostgresRepository

func (*RubricsPostgresRepository) AddCriteriaToObjective added in v0.23.0

func (repository *RubricsPostgresRepository) AddCriteriaToObjective(dto *dtos.AddCriteriaToObjectiveDTO) (criteriaUUID string, err error)

func (*RubricsPostgresRepository) AddObjectiveToRubric added in v0.22.0

func (repository *RubricsPostgresRepository) AddObjectiveToRubric(rubricUUID string, objectiveDescription string) (objectiveUUID string, err error)

func (*RubricsPostgresRepository) Delete added in v0.43.0

func (repository *RubricsPostgresRepository) Delete(uuid string) (err error)

func (*RubricsPostgresRepository) DeleteCriteria added in v0.28.0

func (repository *RubricsPostgresRepository) DeleteCriteria(criteriaUUID string) (err error)

func (*RubricsPostgresRepository) DeleteObjective added in v0.27.0

func (repository *RubricsPostgresRepository) DeleteObjective(objectiveUUID string) (err error)

func (*RubricsPostgresRepository) DoesObjectiveHaveCriteria added in v0.50.0

func (repository *RubricsPostgresRepository) DoesObjectiveHaveCriteria(objectiveUUID string, criteriaUUID string) (bool, error)

DoesObjectiveHaveCriteria checks if the criteria belongs to the given objective

func (*RubricsPostgresRepository) DoesRubricHaveObjective added in v0.50.0

func (repository *RubricsPostgresRepository) DoesRubricHaveObjective(rubricUUID string, objectiveUUID string) (bool, error)

DoesRubricHaveObjective checks if the objective belongs to the given rubric

func (*RubricsPostgresRepository) DoesTeacherOwnCriteria added in v0.23.0

func (repository *RubricsPostgresRepository) DoesTeacherOwnCriteria(teacherUUID string, criteriaUUID string) (bool, error)

func (*RubricsPostgresRepository) DoesTeacherOwnObjective added in v0.23.0

func (repository *RubricsPostgresRepository) DoesTeacherOwnObjective(teacherUUID string, objectiveUUID string) (bool, error)

func (*RubricsPostgresRepository) DoesTeacherOwnRubric added in v0.23.0

func (repository *RubricsPostgresRepository) DoesTeacherOwnRubric(teacherUUID string, rubricUUID string) (bool, error)

func (*RubricsPostgresRepository) GetAllCreatedByTeacher added in v0.20.0

func (repository *RubricsPostgresRepository) GetAllCreatedByTeacher(teacherUUID string) ([]*dtos.CreatedRubricDTO, error)

func (*RubricsPostgresRepository) GetByUUID

func (repository *RubricsPostgresRepository) GetByUUID(uuid string) (rubric *entities.Rubric, err error)

func (*RubricsPostgresRepository) Save

func (repository *RubricsPostgresRepository) Save(dto *dtos.CreateRubricDTO) (rubric *entities.Rubric, err error)

func (*RubricsPostgresRepository) UpdateCriteria added in v0.25.0

func (repository *RubricsPostgresRepository) UpdateCriteria(dto *dtos.UpdateCriteriaDTO) (err error)

func (*RubricsPostgresRepository) UpdateName added in v0.26.0

func (repository *RubricsPostgresRepository) UpdateName(dto *dtos.UpdateRubricNameDTO) (err error)

func (*RubricsPostgresRepository) UpdateObjective added in v0.24.0

func (repository *RubricsPostgresRepository) UpdateObjective(dto *dtos.UpdateObjectiveDTO) (err error)

Jump to

Keyboard shortcuts

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