approvalstatusdb

package
v0.0.0-...-16ef530 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 approval status database access.

func NewStore

func NewStore(log *logger.Logger, db *sqlx.DB) *Store

NewStore constructs the api for data access.

func (*Store) Count

func (s *Store) Count(ctx context.Context, filter approvalstatusbus.QueryFilter) (int, error)

Count returns the total number of approval statuses

func (*Store) Create

Create inserts a new approval status into the database.

func (*Store) Delete

Delete removes an approval status from the database.

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

Query retrieves a list of approval statuses from the database.

func (*Store) QueryByID

func (s *Store) QueryByID(ctx context.Context, aprvlStatusID uuid.UUID) (approvalstatusbus.ApprovalStatus, error)

QueryByID finds the approval status by the specified ID.

func (*Store) Update

Update replaces an approval status document in the database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL