Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + type Project struct + Active bool + AutoEstimates bool + Billable bool + Cid string + DateCreated time.Time + DateUpdated time.Time + EstimatedHours time.Duration + HexColor string + ID string + IsPrivate bool + Name string + Rate float32 + Uid string + Wid string + type Store struct + func NewStore(log *zap.SugaredLogger, db *sqlx.DB) Store + func (s Store) Create(ctx context.Context, project Project) error + func (s Store) Delete(ctx context.Context, projectID string) error + func (s Store) QueryByID(ctx context.Context, projectID string) (Project, error) + func (s Store) QueryClientProjects(ctx context.Context, clientID string, pageNumber, rowsPerPage int) ([]Project, error) + func (s Store) QueryUnique(ctx context.Context, name, column, id string) string + func (s Store) QueryUserProjects(ctx context.Context, userID string, pageNumber, rowsPerPage int) ([]Project, error) + func (s Store) QueryWorkspaceProjects(ctx context.Context, workspaceID string, pageNumber, rowsPerPage int) ([]Project, error) + func (s Store) Tran(tx sqlx.ExtContext) Store + func (s Store) Update(ctx context.Context, project Project) error + func (s Store) WithinTran(ctx context.Context, fn func(sqlx.ExtContext) error) error