database

package
v0.0.0-...-cd399ba Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatrixRepository

type MatrixRepository struct {
	// contains filtered or unexported fields
}

func NewMatrixRepository

func NewMatrixRepository(db *sqlx.DB) (MatrixRepository, error)

func (MatrixRepository) AddSubject

func (r MatrixRepository) AddSubject(ms *domain.MatrixSubject) error

func (MatrixRepository) CourseMatrices

func (r MatrixRepository) CourseMatrices(courseUUID uuid.UUID) ([]domain.Matrix, error)

func (MatrixRepository) CourseMatrixExists

func (r MatrixRepository) CourseMatrixExists(courseUUID uuid.UUID, matrixUUID uuid.UUID) (bool, error)

func (MatrixRepository) CreateMatrix

func (r MatrixRepository) CreateMatrix(matrix *domain.Matrix) error

func (MatrixRepository) DeleteMatrix

func (r MatrixRepository) DeleteMatrix(matrix *domain.DeletedMatrix) error

func (MatrixRepository) Matrices

func (r MatrixRepository) Matrices() ([]domain.Matrix, error)

func (MatrixRepository) Matrix

func (r MatrixRepository) Matrix(matrixUUID uuid.UUID) (domain.Matrix, error)

func (MatrixRepository) RemoveSubject

func (r MatrixRepository) RemoveSubject(matrixUUID, subjectUUID uuid.UUID) error

func (MatrixRepository) UpdateMatrix

func (r MatrixRepository) UpdateMatrix(matrix *domain.Matrix) error

type SubjectRepository

type SubjectRepository struct {
	// contains filtered or unexported fields
}

func NewSubjectRepository

func NewSubjectRepository(db *sqlx.DB) (SubjectRepository, error)

NewSubjectRepository creates the subject SubjectRepository.

func (SubjectRepository) CreateSubject

func (r SubjectRepository) CreateSubject(sub *domain.Subject) error

func (SubjectRepository) DeleteSubject

func (r SubjectRepository) DeleteSubject(id uuid.UUID) error

func (SubjectRepository) Subject

func (r SubjectRepository) Subject(id uuid.UUID) (domain.Subject, error)

func (SubjectRepository) Subjects

func (r SubjectRepository) Subjects() ([]domain.Subject, error)

func (SubjectRepository) UpdateSubject

func (r SubjectRepository) UpdateSubject(sub *domain.Subject) error

Jump to

Keyboard shortcuts

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