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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksPostgresRepository

type BlocksPostgresRepository struct {
	Connection            *sql.DB
	StaticFilesRepository staticFilesDefinitions.StaticFilesRepository
}

func GetBlocksPostgresRepositoryInstance

func GetBlocksPostgresRepositoryInstance() *BlocksPostgresRepository

func (*BlocksPostgresRepository) CanStudentSubmitToTestBlock added in v0.41.0

func (repository *BlocksPostgresRepository) CanStudentSubmitToTestBlock(studentUUID string, testBlockUUID string) (bool, error)

func (*BlocksPostgresRepository) DeleteMarkdownBlock added in v0.39.0

func (repository *BlocksPostgresRepository) DeleteMarkdownBlock(blockUUID string) (err error)

func (*BlocksPostgresRepository) DeleteTestBlock added in v0.39.0

func (repository *BlocksPostgresRepository) DeleteTestBlock(blockUUID string) (err error)

func (*BlocksPostgresRepository) DoesTeacherOwnsMarkdownBlock

func (repository *BlocksPostgresRepository) DoesTeacherOwnsMarkdownBlock(teacherUUID string, blockUUID string) (bool, error)

func (*BlocksPostgresRepository) DoesTeacherOwnsTestBlock added in v0.37.0

func (repository *BlocksPostgresRepository) DoesTeacherOwnsTestBlock(teacherUUID string, blockUUID string) (bool, error)

func (*BlocksPostgresRepository) GetMarkdownBlockByUUID added in v0.47.0

func (repository *BlocksPostgresRepository) GetMarkdownBlockByUUID(blockUUID string) (markdownBlock *laboratoriesEntities.MarkdownBlock, err error)

func (*BlocksPostgresRepository) GetTestArchiveUUIDFromTestBlockUUID added in v0.37.0

func (repository *BlocksPostgresRepository) GetTestArchiveUUIDFromTestBlockUUID(blockUUID string) (uuid string, err error)

func (*BlocksPostgresRepository) GetTestBlockByUUID added in v0.47.0

func (repository *BlocksPostgresRepository) GetTestBlockByUUID(blockUUID string) (testBlock *laboratoriesEntities.TestBlock, err error)

func (*BlocksPostgresRepository) GetTestBlockLaboratoryUUID added in v0.42.1

func (repository *BlocksPostgresRepository) GetTestBlockLaboratoryUUID(blockUUID string) (laboratoryUUID string, err error)

func (*BlocksPostgresRepository) SwapBlocks added in v0.47.0

func (repository *BlocksPostgresRepository) SwapBlocks(firstBlockUUID, secondBlockUUID string) (err error)

func (*BlocksPostgresRepository) UpdateMarkdownBlockContent

func (repository *BlocksPostgresRepository) UpdateMarkdownBlockContent(blockUUID string, content string) (err error)

func (*BlocksPostgresRepository) UpdateTestBlock added in v0.37.0

func (repository *BlocksPostgresRepository) UpdateTestBlock(dto *dtos.UpdateTestBlockDTO) (err error)

Jump to

Keyboard shortcuts

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