Documentation ¶
Overview ¶
SQLite3 backend for the tilo server.
Each record has two timestamps, "started" and "ended". They are saved as Unix time stamps because some arithmetic is performed on them which is cumbersome when storing timestamps as strings.
Index ¶
- type SQLite
- func (s *SQLite) Close() error
- func (s *SQLite) Config() config.BackendConfig
- func (s *SQLite) GetAllTasksBetween(start, end time.Time) ([]msg.Summary, error)
- func (s *SQLite) GetTaskBetween(task string, start time.Time, end time.Time) ([]msg.Summary, error)
- func (s *SQLite) Init() error
- func (s *SQLite) Name() string
- func (s *SQLite) RecentTasks(maxNumber int) ([]msg.Summary, error)
- func (s *SQLite) Save(task msg.Task) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
func (*SQLite) Config ¶
func (s *SQLite) Config() config.BackendConfig
func (*SQLite) GetAllTasksBetween ¶
Query the total time spent on all tasks between start and end.
func (*SQLite) GetTaskBetween ¶
Query the total time spent on a task between start and end.
Click to show internal directories.
Click to hide internal directories.