Documentation
¶
Index ¶
- Constants
- func ChangeTaskStatusInDB(db *sql.DB, id uint64, active bool, updatedAt time.Time) error
- func DeleteTaskInDB(db *sql.DB, id uint64) error
- func FetchActiveTasksFromDB(db *sql.DB, limit int) ([]types.Task, error)
- func FetchInActiveTasksFromDB(db *sql.DB, limit int) ([]types.Task, error)
- func FetchNumActiveTasksFromDB(db *sql.DB) (int, error)
- func ImportTaskIntoDB(db *sql.DB, summary string, active bool, createdAt, updatedAt time.Time) error
- func ImportTasksIntoDB(db *sql.DB, tasks []string, active bool, createdAt, updatedAt time.Time) error
- func InsertTaskInDB(db *sql.DB, summary string, createdAt, updatedAt time.Time) (uint64, error)
- func UpdateTaskSequenceInDB(db *sql.DB, sequence []uint64) error
- func UpdateTaskSummaryInDB(db *sql.DB, id uint64, summary string) error
Constants ¶
View Source
const (
TaskNumLimit = 300
)
Variables ¶
This section is empty.
Functions ¶
func ChangeTaskStatusInDB ¶
func FetchActiveTasksFromDB ¶
func ImportTaskIntoDB ¶
func ImportTasksIntoDB ¶
func InsertTaskInDB ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.