MCPcopy Create free account
hub / github.com/Cawlumm/lyftr / scanProgram

Function scanProgram

backend/stores/program.go:23–25  ·  view source on GitHub ↗
(row interface{ Scan(...any) error }, p *models.Program)

Source from the content-addressed store, hash-verified

21
22const programCols = `id, user_id, name, notes, created_at`
23
24func scanProgram(row interface{ Scan(...any) error }, p *models.Program) error {
25 return row.Scan(&p.ID, &p.UserID, &p.Name, &p.Notes, &p.CreatedAt)
26}
27
28func (s *ProgramStore) List(uid int64, f ProgramFilter) ([]models.Program, error) {

Callers 3

ListMethod · 0.85
GetMethod · 0.85
getMethod · 0.85

Calls 1

ScanMethod · 0.80

Tested by

no test coverage detected