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 ImportTaskSummariesIntoDB(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 InsertTasksIntoDB(db *sql.DB, tasks []types.Task) error
- func UnsetTaskContextInDB(db *sql.DB, id uint64, updatedAt time.Time) error
- func UpdateTaskContextInDB(db *sql.DB, id uint64, context string, updatedAt time.Time) error
- func UpdateTaskSequenceInDB(db *sql.DB, sequence []uint64) error
- func UpdateTaskSummaryInDB(db *sql.DB, id uint64, summary string, updatedAt time.Time) error
Constants ¶
View Source
const ( TaskNumLimit = 300 ContentMaxBytes = 3000 )
Variables ¶
This section is empty.
Functions ¶
func ChangeTaskStatusInDB ¶
func FetchActiveTasksFromDB ¶
func ImportTaskIntoDB ¶
func ImportTaskSummariesIntoDB ¶ added in v0.2.0
func InsertTaskInDB ¶
func InsertTasksIntoDB ¶ added in v0.2.0
func UnsetTaskContextInDB ¶ added in v0.2.0
func UpdateTaskContextInDB ¶ added in v0.2.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.