sqlite3

package
v0.0.0-...-8cfe5f7 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

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

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) Close

func (s *SQLite) Close() error

func (*SQLite) Config

func (s *SQLite) Config() config.BackendConfig

func (*SQLite) GetAllTasksBetween

func (s *SQLite) GetAllTasksBetween(start, end time.Time) ([]msg.Summary, error)

Query the total time spent on all tasks between start and end.

func (*SQLite) GetTaskBetween

func (s *SQLite) GetTaskBetween(task string, start time.Time, end time.Time) ([]msg.Summary, error)

Query the total time spent on a task between start and end.

func (*SQLite) Init

func (s *SQLite) Init() error

func (*SQLite) Name

func (s *SQLite) Name() string

func (*SQLite) RecentTasks

func (s *SQLite) RecentTasks(maxNumber int) ([]msg.Summary, error)

func (*SQLite) Save

func (s *SQLite) Save(task msg.Task) error

Jump to

Keyboard shortcuts

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