db

package
v0.0.0-...-beefb7c Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func DeleteLatest

func DeleteLatest()

func ExternalDeleteID

func ExternalDeleteID(id int)

func GetDbPath

func GetDbPath() string

func GetLocalGomodorosByYear

func GetLocalGomodorosByYear(year int) []string

func GetTotalsRecord

func GetTotalsRecord()

func GetValidYears

func GetValidYears() []int

func Init

func Init()

Init has 2 purposes:

  1. loads the config.yaml file

// 2. opens the SQLite database and creates the main table if if it do not exist

func InsertRecord

func InsertRecord(date string, startTimestamp string, endTimestamp string, minutes int, category string, subcategory string)

func ListGomodoros

func ListGomodoros(days int)

func LoadConfig

func LoadConfig()

func Sync

func Sync()

func ValidateSync

func ValidateSync()

Types

type Gomodoro

type Gomodoro struct {
	Year           string
	Date           string
	StartTimestamp string
	EndTimestamp   string
	Minutes        int
	Category       string
	SubCategory    string
}

func GetGomodorosCassandra

func GetGomodorosCassandra() []Gomodoro

Jump to

Keyboard shortcuts

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