Documentation
¶
Overview ¶
Package scrumdb contains scrum related CRUD functionality.
Index ¶
- type Store
- func (s *Store) Count(ctx context.Context, filter scrumbus.QueryFilter) (int, error)
- func (s *Store) Create(ctx context.Context, scrum scrumbus.Scrum) error
- func (s *Store) Delete(ctx context.Context, scrum scrumbus.Scrum) error
- func (s *Store) NewWithTx(tx sqldb.CommitRollbacker) (scrumbus.Storer, error)
- func (s *Store) Query(ctx context.Context, filter scrumbus.QueryFilter, orderBy order.By, ...) ([]scrumbus.Scrum, error)
- func (s *Store) QueryByID(ctx context.Context, scrumID uuid.UUID) (scrumbus.Scrum, error)
- func (s *Store) QueryByUserID(ctx context.Context, userID uuid.UUID) ([]scrumbus.Scrum, error)
- func (s *Store) Update(ctx context.Context, scrum scrumbus.Scrum) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages the set of APIs for scrum database access.
func (*Store) NewWithTx ¶
NewWithTx constructs a new Store value replacing the sqlx DB value with a sqlx DB value that is currently inside a transaction.
func (*Store) Query ¶
func (s *Store) Query(ctx context.Context, filter scrumbus.QueryFilter, orderBy order.By, page page.Page) ([]scrumbus.Scrum, error)
Query retrieves a list of existing scrums from the database.
func (*Store) QueryByUserID ¶
QueryByUserID gets the specified scrum from the database by user id.
Click to show internal directories.
Click to hide internal directories.