Documentation
¶
Index ¶
- Constants
- Variables
- func Close()
- func DeleteProject(name string) error
- func DeleteRecord(id uuid.UUID) error
- func GetActiveProject() *models.Project
- func GetAllProjects() ([]models.Project, error)
- func GetAllRecords() ([]models.Record, error)
- func GetProject(name string) (models.Project, error)
- func GetRecord(id uuid.UUID) (models.Record, error)
- func GetReportRecords(req models.ReportRequest) ([]models.Record, error)
- func GetTodaysRecords() ([]models.Record, error)
- func InitializeDatabase() error
- func SaveProject(p *models.Project) error
- func SaveRecord(r *models.Record) error
Constants ¶
View Source
const ( // table names PROJECT_TABLE_NAME = "projects" RECORDS_TABLE_NAME = "records" )
Variables ¶
View Source
var (
ErrNoResults = errors.New("no results found")
)
Functions ¶
func DeleteProject ¶
func DeleteRecord ¶
func GetActiveProject ¶
func GetAllProjects ¶
func GetAllRecords ¶
func GetReportRecords ¶
func GetReportRecords(req models.ReportRequest) ([]models.Record, error)
func GetTodaysRecords ¶
func InitializeDatabase ¶
func InitializeDatabase() error
func SaveProject ¶
func SaveRecord ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.