database

package
v0.0.0-...-13688cf Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DbFileDefault = "scheduler.db"

Variables

This section is empty.

Functions

func DeleteTask

func DeleteTask(id string) error

func InitDatabase

func InitDatabase() error

func InsertTask

func InsertTask(date, title, comment, repeat string) (int, error)

func UpdateDayForTask

func UpdateDayForTask(id, date string) error

func UpdateTaskByID

func UpdateTaskByID(id, date, title, comment, repeat string) error

Types

type Task

type Task struct {
	ID      string `json:"id"`
	Date    string `json:"date"`
	Title   string `json:"title"`
	Comment string `json:"comment"`
	Repeat  string `json:"repeat"`
}

func GetAllTasks

func GetAllTasks() ([]Task, error)

func GetTaskByID

func GetTaskByID(taskID string) (*Task, error)

Jump to

Keyboard shortcuts

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