sqlite

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Now func() time.Time
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(dbFile string) (*Storage, error)

func (*Storage) AddGroupStats

func (s *Storage) AddGroupStats(groupID int64, opened int64, closed int64, total int64, dateExec time.Time) error

func (*Storage) AddProjectStats

func (s *Storage) AddProjectStats(projectID int64, opened int64, closed int64, total int64, dateExec time.Time) error

func (*Storage) Close

func (s *Storage) Close() error

func (*Storage) GetStatsByGroupID6Months

func (s *Storage) GetStatsByGroupID6Months(groupID int64, beginDate carbon.Carbon, endDate carbon.Carbon) ([]float64, []float64, []time.Time, error)

func (*Storage) GetStatsByProjectId6Months

func (s *Storage) GetStatsByProjectId6Months(projectID int64, beginDate carbon.Carbon, endDate carbon.Carbon) (openedSerie []float64, closedSerie []float64, dateExecSerie []time.Time, err error)

func (*Storage) Init

func (s *Storage) Init() error

func (*Storage) SetNow added in v1.3.0

func (s *Storage) SetNow(now func() time.Time)

Jump to

Keyboard shortcuts

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