Documentation
¶
Index ¶
- type Store
- func (s *Store) Count(ctx context.Context, filter assetconditionbus.QueryFilter) (int, error)
- func (s *Store) Create(ctx context.Context, at assetconditionbus.AssetCondition) error
- func (s *Store) Delete(ctx context.Context, at assetconditionbus.AssetCondition) error
- func (s *Store) NewWithTx(tx sqldb.CommitRollbacker) (assetconditionbus.Storer, error)
- func (s *Store) Query(ctx context.Context, filter assetconditionbus.QueryFilter, orderBy order.By, ...) ([]assetconditionbus.AssetCondition, error)
- func (s *Store) QueryByID(ctx context.Context, id uuid.UUID) (assetconditionbus.AssetCondition, error)
- func (s *Store) Update(ctx context.Context, at assetconditionbus.AssetCondition) 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 streets database access.
func (*Store) Count ¶
func (s *Store) Count(ctx context.Context, filter assetconditionbus.QueryFilter) (int, error)
Count returns the total number of asset conditions in the DB.
func (*Store) Create ¶
func (s *Store) Create(ctx context.Context, at assetconditionbus.AssetCondition) error
Create inserts a new asset condition into the database.
func (*Store) Delete ¶
func (s *Store) Delete(ctx context.Context, at assetconditionbus.AssetCondition) error
Delete removes an asset condition from the database.
func (*Store) NewWithTx ¶
func (s *Store) NewWithTx(tx sqldb.CommitRollbacker) (assetconditionbus.Storer, error)
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 assetconditionbus.QueryFilter, orderBy order.By, page page.Page) ([]assetconditionbus.AssetCondition, error)
Query retrieves a list of existing asset conditions from the database.
func (*Store) QueryByID ¶
func (s *Store) QueryByID(ctx context.Context, id uuid.UUID) (assetconditionbus.AssetCondition, error)
QueryByID retrieves a single asset condition by its id.
func (*Store) Update ¶
func (s *Store) Update(ctx context.Context, at assetconditionbus.AssetCondition) error
Update modifies data about an asset condition in the database.
Click to show internal directories.
Click to hide internal directories.