dal

package
v0.0.0-...-f83b169 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeTaskStatus

func ChangeTaskStatus(cfg *database.Config, taskID string, expectedStatuses []dto.TaskStatus, newStatus dto.TaskStatus) error

ChangeTaskStatus changes the status of the task in the database

func CreateTask

func CreateTask(cfg *database.Config, t *dto.Task) error

CreateTask creates the task in the database

func ListTasks

func ListTasks(cfg *database.Config, due time.Time, allTasks bool) ([]dto.Task, error)

ListTasks lists the task matching search criteria Tasks are ordered by due date, ascending

func Migrate

func Migrate(cfg *database.Config, checkIfEmpty bool) error

Migrate perform database schema migration to the current version if `checkIfEmpty` argument is set, it will fail on a non-empty database

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL