db

package
v0.0.0-...-ea88d16 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BulkAddSets

func BulkAddSets(path string, allExs []models.Set)

BulkAddSets - add slice

func BulkDeleteSetsByDate

func BulkDeleteSetsByDate(path, date string)

BulkDeleteSetsByDate - delete all Sets with date

func ClearEx

func ClearEx(path string)

ClearEx - delete all exercises from table

func ClearSet

func ClearSet(path string)

ClearSet - delete all sets from table

func Create

func Create(path string)

Create - create table if not exists

func DeleteEx

func DeleteEx(path string, id int)

DeleteEx - delete one exercise

func DeleteSet

func DeleteSet(path string, id int)

DeleteSet - delete one set

func DeleteW

func DeleteW(path string, id int)

DeleteW - delete weight

func InsertEx

func InsertEx(path string, ex models.Exercise)

InsertEx - insert one exercise into DB

func InsertSet

func InsertSet(path string, ex models.Set)

InsertSet - insert one set into DB

func InsertW

func InsertW(path string, ex models.BodyWeight)

InsertW - insert weight

func SelectEx

func SelectEx(path string) (exes []models.Exercise)

SelectEx - select all exercises from DB

func SelectSet

func SelectSet(path string) (sets []models.Set)

SelectSet - select all sets from DB

func SelectW

func SelectW(path string) (w []models.BodyWeight)

SelectW - select all weight from DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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