Documentation ¶
Index ¶
- type PGRepository
- func (repo *PGRepository) Delete(ctx context.Context, f *model.GroupFilter) ([]*model.Group, error)
- func (repo *PGRepository) Fetch(ctx context.Context, f *model.GroupFilter) ([]*model.Group, int, error)
- func (repo *PGRepository) GetByID(ctx context.Context, id int) (*model.Group, error)
- func (repo *PGRepository) Store(ctx context.Context, group *model.Group) error
- func (repo *PGRepository) StoreMany(ctx context.Context, groups []*model.Group) error
- func (repo *PGRepository) Update(ctx context.Context, group *model.Group) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGRepository ¶ added in v1.1.0
type PGRepository struct {
*pg.DB
}
func NewPgRepo ¶
func NewPgRepo(db *pg.DB) (*PGRepository, error)
func (*PGRepository) Delete ¶ added in v1.1.0
func (repo *PGRepository) Delete(ctx context.Context, f *model.GroupFilter) ([]*model.Group, error)
func (*PGRepository) Fetch ¶ added in v1.1.0
func (repo *PGRepository) Fetch(ctx context.Context, f *model.GroupFilter) ([]*model.Group, int, error)
Click to show internal directories.
Click to hide internal directories.