Documentation
¶
Index ¶
- type DBConfig
- type Store
- func (s *Store) CreateStudent(name string) (*models.Student, error)
- func (s *Store) DeleteStudentByID(id uuid.UUID) (found bool, err error)
- func (s *Store) GetStudentByID(id uuid.UUID) (student *models.Student, found bool, err error)
- func (s *Store) UpdateStudent(student *models.Student) (updatedStudent *models.Student, found bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
wrapper around a sqlx.DB, used for performing database operations
func (*Store) DeleteStudentByID ¶
func (*Store) GetStudentByID ¶
Click to show internal directories.
Click to hide internal directories.