Documentation ¶
Overview ¶
Package sqldb implements the server.DB interface, backed by a sqlite database.
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) ComparableLifts(ex stronk.Exercise, weight stronk.Weight) (*stronk.ComparableLifts, error)
- func (db *DB) CreateExercise(ex stronk.Exercise) error
- func (db *DB) EditLift(id stronk.LiftID, note string, reps int) error
- func (db *DB) Lift(id stronk.LiftID) (*stronk.Lift, error)
- func (db *DB) RecentFailureSets() ([]*stronk.Lift, error)
- func (db *DB) RecentLifts() ([]*stronk.Lift, error)
- func (db *DB) RecordLift(ex stronk.Exercise, st stronk.SetType, weight stronk.Weight, set int, reps int, ...) (stronk.LiftID, error)
- func (db *DB) SetSmallestDenom(small stronk.Weight) error
- func (db *DB) SetTrainingMaxes(press, squat, bench, deadlift stronk.Weight) error
- func (db *DB) SkipWeek(note string, week, iter int) error
- func (db *DB) SkippedWeeks() ([]stronk.SkippedWeek, error)
- func (db *DB) SmallestDenom() (stronk.Weight, error)
- func (db *DB) TrainingMaxes() ([]*stronk.TrainingMax, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) ComparableLifts ¶
func (*DB) RecordLift ¶
func (*DB) SetTrainingMaxes ¶
func (*DB) SkippedWeeks ¶
func (db *DB) SkippedWeeks() ([]stronk.SkippedWeek, error)
func (*DB) TrainingMaxes ¶
func (db *DB) TrainingMaxes() ([]*stronk.TrainingMax, error)
Click to show internal directories.
Click to hide internal directories.