Documentation ¶
Index ¶
- Constants
- type Tables
- type Task
- type TasksTable
- func (t *TasksTable) Create(db *sql.DB) error
- func (t *TasksTable) Delete(db *sql.DB, id uint) error
- func (t *TasksTable) GetAll(db *sql.DB) ([]Task, error)
- func (t *TasksTable) GetByStatus(db *sql.DB, status string) ([]Task, error)
- func (t *TasksTable) Insert(db *sql.DB, name, project string) error
- func (t *TasksTable) Update(db *sql.DB, task Task) error
Constants ¶
View Source
const ( Todo status = iota InProgress Done )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tables ¶
type Tables struct { Db *sql.DB Tasks *TasksTable }
Click to show internal directories.
Click to hide internal directories.