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) Delete(ctx context.Context, workspaceUserID string) error + func (s Store) Invite(ctx context.Context, workspaceUser WorkspaceUser) error + func (s Store) Query(ctx context.Context, workspaceID string, pageNumber int, rowsPerPage int) ([]WorkspaceUser, error) + func (s Store) QueryByID(ctx context.Context, workspaceUserID string) (WorkspaceUser, error) + func (s Store) QueryByuIDwID(ctx context.Context, workspaceID, userID string) (WorkspaceUser, error) + func (s Store) Tran(tx sqlx.ExtContext) Store + func (s Store) Update(ctx context.Context, workspaceUser WorkspaceUser) error + func (s Store) WithinTran(ctx context.Context, fn func(sqlx.ExtContext) error) error + type WorkspaceUser struct + Active bool + Admin bool + DateCreated time.Time + DateUpdated time.Time + ID string + InviteKey string + Uid string + Wid string