implementations

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 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) DeleteObjective added in v0.27.0

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

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