actions

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddChore

func AddChore(chorename string) error

AddChore accepts a chorename and adds it to the Chores table

func CheckDB

func CheckDB() error

CheckDB checks if the database is alive

func DeleteChore

func DeleteChore(cid int) error

DeleteChore deletes a chore from the database Arguments:

cid -> the chore id

func EditChore

func EditChore(cid int, chorename string) error

EditChore edits a chore in the database Arguments:

cid -> the chore id

func GetAllChores

func GetAllChores() ([]string, error)

GetAllChores retrieves a chore from the database.

Returns:
[]string -> a slice of strings representing all chores
error -> an error if the chore is not found or the id is invalid

func GetChore

func GetChore(cid int) (string, error)

GetChore retrieves a chore from the database.

Arguments:

cid -> the chore id

Returns:
error -> an error if the chore is not found or the id is invalid

Types

This section is empty.

Jump to

Keyboard shortcuts

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