repository

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (*PGRepository) Fetch added in v1.0.2

func (repo *PGRepository) Fetch(ctx context.Context, cfg *profession.FetchConfig) ([]*model.Profession, int, error)

func (*PGRepository) GetAssociatedQualifications added in v1.0.2

func (repo *PGRepository) GetAssociatedQualifications(
	ctx context.Context,
	ids ...int,
) (map[int][]*model.Qualification, error)

func (*PGRepository) Store added in v1.0.2

func (repo *PGRepository) Store(ctx context.Context, input *model.ProfessionInput) (*model.Profession, error)

func (*PGRepository) UpdateMany added in v1.0.2

func (repo *PGRepository) UpdateMany(ctx context.Context, f *model.ProfessionFilter, input *model.ProfessionInput) ([]*model.Profession, error)

type PGRepositoryConfig

type PGRepositoryConfig struct {
	DB *pg.DB
}

Jump to

Keyboard shortcuts

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