implementations

package
v0.53.5 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LaboratoriesPostgresRepository

type LaboratoriesPostgresRepository struct {
	Connection *sql.DB
}

func GetLaboratoriesPostgresRepositoryInstance

func GetLaboratoriesPostgresRepositoryInstance() *LaboratoriesPostgresRepository

func (*LaboratoriesPostgresRepository) CreateMarkdownBlock added in v0.32.0

func (repository *LaboratoriesPostgresRepository) CreateMarkdownBlock(laboratoryUUID string) (blockUUID string, err error)

func (*LaboratoriesPostgresRepository) CreateTestBlock added in v0.36.0

func (repository *LaboratoriesPostgresRepository) CreateTestBlock(dto *dtos.CreateTestBlockDTO) (blockUUID string, err error)

func (*LaboratoriesPostgresRepository) DoesTeacherOwnLaboratory added in v0.50.0

func (repository *LaboratoriesPostgresRepository) DoesTeacherOwnLaboratory(teacherUUID string, laboratoryUUID string) (bool, error)

DoesTeacherOwnLaboratory returns true if the teacher owns the laboratory and throws an error if the laboratory does not exist

func (*LaboratoriesPostgresRepository) GetLaboratoryByUUID

func (repository *LaboratoriesPostgresRepository) GetLaboratoryByUUID(dto *dtos.GetLaboratoryDTO) (laboratory *entities.Laboratory, err error)

func (*LaboratoriesPostgresRepository) GetLaboratoryInformationByUUID added in v0.45.0

func (repository *LaboratoriesPostgresRepository) GetLaboratoryInformationByUUID(uuid string) (laboratory *dtos.LaboratoryDetailsDTO, err error)

func (*LaboratoriesPostgresRepository) GetStudentSubmissions added in v0.53.0

func (repository *LaboratoriesPostgresRepository) GetStudentSubmissions(laboratoryUUID string, studentUUID string) (submissions []*dtos.SummarizedStudentSubmissionDTO, err error)

GetStudentSubmissions returns the submissions of a student in a laboratory

func (*LaboratoriesPostgresRepository) GetStudentsProgress added in v0.44.0

func (repository *LaboratoriesPostgresRepository) GetStudentsProgress(laboratoryUUID string) (progress []*dtos.SummarizedStudentProgressDTO, err error)

func (*LaboratoriesPostgresRepository) GetTotalTestBlocks added in v0.44.0

func (repository *LaboratoriesPostgresRepository) GetTotalTestBlocks(laboratoryUUID string) (total int, err error)

func (*LaboratoriesPostgresRepository) SaveLaboratory

func (repository *LaboratoriesPostgresRepository) SaveLaboratory(dto *dtos.CreateLaboratoryDTO) (laboratory *entities.Laboratory, err error)

func (*LaboratoriesPostgresRepository) UpdateLaboratory added in v0.30.0

func (repository *LaboratoriesPostgresRepository) UpdateLaboratory(dto *dtos.UpdateLaboratoryDTO) error

Jump to

Keyboard shortcuts

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