sqlite

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("record not found")
)

Functions

This section is empty.

Types

type Search struct {
	Search string
	Date   string
	Active bool
}

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New(storagePath string) (*Storage, error)

func (*Storage) DeleteTask

func (s *Storage) DeleteTask(id string) error

func (*Storage) GetTaskByID

func (s *Storage) GetTaskByID(id string) (*models.Task, error)

func (*Storage) GetTasks

func (s *Storage) GetTasks(search_st *Search) ([]*models.Task, error)

func (*Storage) SaveTask

func (s *Storage) SaveTask(task *models.Task) (int64, error)

func (*Storage) UpdateTask

func (s *Storage) UpdateTask(task *models.Task) error

Jump to

Keyboard shortcuts

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