db

package
v0.0.0-...-57762c0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStore

type DataStore interface {
	AddOrUpdateTeacher(teacher *models.Teacher) (int, error)
	GetTeacher(id int) (*models.Teacher, error)
	GetTeachers() ([]*models.Teacher, error)
	DeleteTeacher(id int) (string, error)

	AddOrUpdateSubject(subject *models.Subject) (int, error)
	GetSubject(id int) (*models.Subject, error)
	GetSubjects() ([]*models.Subject, error)
	DeleteSubject(id int) (string, error)

	AddOrUpdateClass(class *models.Class) (int, error)
	GetClass(id int) (*models.Class, error)
	GetClasses() ([]*models.Class, error)
	DeleteClass(id int) (string, error)

	AddOrUpdateStudent(student *models.Student) (int, error)
	GetStudent(id int) (*models.Student, error)
	GetStudents() ([]*models.Student, error)
	DeleteStudent(id int) (string, error)

	AddOrUpdateAccount(account *models.Account) (int, error)
	GetAccount(id int) (*models.Account, error)
	GetAccounts() ([]*models.Account, error)
	DeleteAccount(id int) (string, error)
}

type Options

type Options struct {
	TestMode bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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