sqlite

package
v0.0.0-...-59b087f Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a SQLite storage. It implements task.repository interface.

func Open

func Open(path, params string) (s Store, err error)

func (Store) Close

func (s Store) Close() error

func (Store) Create

func (s Store) Create(t task.Item) (id int64, err error)

func (Store) GetAll

func (s Store) GetAll() ([]task.Item, error)

func (Store) GetByID

func (s Store) GetByID(id int64) (task.Item, error)

func (Store) GetByState

func (s Store) GetByState(status task.Status) ([]task.Item, error)

func (Store) Update

func (s Store) Update(t task.Item) error

Jump to

Keyboard shortcuts

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