Documentation
¶
Index ¶
- type PGRepository
- func (repo *PGRepository) Delete(ctx context.Context, f *model.QualificationFilter) ([]*model.Qualification, error)
- func (repo *PGRepository) Fetch(ctx context.Context, cfg *qualification.FetchConfig) ([]*model.Qualification, int, error)
- func (repo *PGRepository) GetSimilar(ctx context.Context, cfg *qualification.GetSimilarConfig) ([]*model.Qualification, int, error)
- func (repo *PGRepository) Store(ctx context.Context, input *model.QualificationInput) (*model.Qualification, error)
- func (repo *PGRepository) UpdateMany(ctx context.Context, f *model.QualificationFilter, ...) ([]*model.Qualification, error)
- type PGRepositoryConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PGRepository ¶ added in v1.0.2
type PGRepository struct {
*pg.DB
}
func NewPGRepository ¶
func NewPGRepository(cfg *PGRepositoryConfig) (*PGRepository, error)
func (*PGRepository) Delete ¶ added in v1.0.2
func (repo *PGRepository) Delete(ctx context.Context, f *model.QualificationFilter) ([]*model.Qualification, error)
func (*PGRepository) Fetch ¶ added in v1.0.2
func (repo *PGRepository) Fetch(ctx context.Context, cfg *qualification.FetchConfig) ([]*model.Qualification, int, error)
func (*PGRepository) GetSimilar ¶ added in v1.0.2
func (repo *PGRepository) GetSimilar(ctx context.Context, cfg *qualification.GetSimilarConfig) ([]*model.Qualification, int, error)
func (*PGRepository) Store ¶ added in v1.0.2
func (repo *PGRepository) Store(ctx context.Context, input *model.QualificationInput) (*model.Qualification, error)
func (*PGRepository) UpdateMany ¶ added in v1.0.2
func (repo *PGRepository) UpdateMany( ctx context.Context, f *model.QualificationFilter, input *model.QualificationInput, ) ([]*model.Qualification, error)
type PGRepositoryConfig ¶
type PGRepositoryConfig struct {
DB *pg.DB
}
Click to show internal directories.
Click to hide internal directories.