Documentation
¶
Index ¶
- func GetStoragePath() (string, error)
- type TaskDB
- func (tdb *TaskDB) Close() error
- func (tdb *TaskDB) Delete(id uint) error
- func (tdb *TaskDB) GetTask(id uint) (task.Task, error)
- func (tdb *TaskDB) GetTasks() ([]task.Task, error)
- func (tdb *TaskDB) GetTasksByStatus(status string) ([]task.Task, error)
- func (tdb *TaskDB) Insert(name, project string) (task.Task, error)
- func (tdb *TaskDB) Update(id uint, name *string, project *string, status *string) (task.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStoragePath ¶
GetStoragePath returns the calculated storage path for the database file. Exported
Types ¶
type TaskDB ¶
type TaskDB struct {
// contains filtered or unexported fields
}
TaskDB holds the database connection. Exported type.
func (*TaskDB) GetTasksByStatus ¶
GetTasksByStatus retrieves tasks filtered by status.
Click to show internal directories.
Click to hide internal directories.