db

package
v0.0.0-...-373f119 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGoal

func AddGoal(db *sql.DB, name string, maxTicks int) error

func CreateTableIfNotPresent

func CreateTableIfNotPresent(db *sql.DB) error

func DeleteGoal

func DeleteGoal(db *sql.DB, name string) (bool, error)

func Start

func Start()

func TickProgress

func TickProgress(db *sql.DB, name string) (float64, error)

Types

type Goal

type Goal common.Goal

func FindByName

func FindByName(db *sql.DB, name string) (Goal, error)

func ReadGoals

func ReadGoals(db *sql.DB) ([]Goal, error)

Jump to

Keyboard shortcuts

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