Documentation
¶
Index ¶
- type Store
- func (s *Store) Count(ctx context.Context, filter citybus.QueryFilter) (int, error)
- func (s *Store) Create(ctx context.Context, cty citybus.City) error
- func (s *Store) Delete(ctx context.Context, cty citybus.City) error
- func (s *Store) NewWithTx(tx sqldb.CommitRollbacker) (citybus.Storer, error)
- func (s *Store) Query(ctx context.Context, filter citybus.QueryFilter, orderBy order.By, ...) ([]citybus.City, error)
- func (s *Store) QueryByID(ctx context.Context, cityID uuid.UUID) (citybus.City, error)
- func (s *Store) Update(ctx context.Context, cty citybus.City) 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 cities 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 citybus.QueryFilter, orderBy order.By, page page.Page) ([]citybus.City, error)
Query retrieves a list of cities from the database.
Click to show internal directories.
Click to hide internal directories.