Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + type Store struct + func NewStore(log *zap.SugaredLogger, db *sqlx.DB) Store + func (s Store) Create(ctx context.Context, task Task) error + func (s Store) Delete(ctx context.Context, taskID string) error + func (s Store) QueryByID(ctx context.Context, taskID string) (Task, error) + func (s Store) QueryProjectTasks(ctx context.Context, projectID string, pageNumber, rowsPerPage int) ([]Task, error) + func (s Store) QueryUnique(ctx context.Context, name, column, id string) string + func (s Store) QueryWorkspaceTasks(ctx context.Context, workspaceID string, pageNumber, rowsPerPage int) ([]Task, error) + func (s Store) Tran(tx sqlx.ExtContext) Store + func (s Store) Update(ctx context.Context, task Task) error + func (s Store) WithinTran(ctx context.Context, fn func(sqlx.ExtContext) error) error + type Task struct + Active bool + DateCreated time.Time + DateUpdated time.Time + EstimatedSeconds time.Duration + ID string + Name string + Pid string + TrackedSeconds time.Duration + Uid string + Wid string