Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + type Client struct + DateCreated time.Time + DateUpdated time.Time + ID string + Name string + Notes string + Uid string + Wid string + type Store struct + func NewStore(log *zap.SugaredLogger, db *sqlx.DB) Store + func (s Store) Create(ctx context.Context, client Client) error + func (s Store) Delete(ctx context.Context, clientID string) error + func (s Store) Query(ctx context.Context, userID string, pageNumber int, rowsPerPage int) ([]Client, error) + func (s Store) QueryByID(ctx context.Context, clientID string) (Client, error) + func (s Store) QueryUnique(ctx context.Context, name, column, id string) string + func (s Store) QueryWorkspaceClients(ctx context.Context, workspaceID string, pageNumber, rowsPerPage int) ([]Client, error) + func (s Store) Tran(tx sqlx.ExtContext) Store + func (s Store) Update(ctx context.Context, client Client) error + func (s Store) WithinTran(ctx context.Context, fn func(sqlx.ExtContext) error) error