postgres

package
v0.0.0-...-a4b8a28 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: CC0-1.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *sql.DB) *Repository

func NewRepositoryTx

func NewRepositoryTx(tx *sql.Tx) *Repository

func (*Repository) CreateJobKey

func (r *Repository) CreateJobKey(ctx context.Context, jobKey models.JobKey) error

func (*Repository) CreateJobKeys

func (r *Repository) CreateJobKeys(ctx context.Context, jobKeys []models.JobKey) error

func (*Repository) GetACOByUUID

func (r *Repository) GetACOByUUID(ctx context.Context, uuid uuid.UUID) (*models.ACO, error)

func (*Repository) GetCCLFBeneficiaryByID

func (r *Repository) GetCCLFBeneficiaryByID(ctx context.Context, id uint) (*models.CCLFBeneficiary, error)

func (*Repository) GetJobByID

func (r *Repository) GetJobByID(ctx context.Context, jobID uint) (*models.Job, error)

func (*Repository) GetJobKey

func (r *Repository) GetJobKey(ctx context.Context, jobID uint, queJobID int64) (*models.JobKey, error)

func (*Repository) GetJobKeyCount

func (r *Repository) GetJobKeyCount(ctx context.Context, jobID uint) (int, error)

func (*Repository) GetUniqueJobKeyCount

func (r *Repository) GetUniqueJobKeyCount(ctx context.Context, jobID uint) (int, error)

func (*Repository) IncrementCompletedJobCount

func (r *Repository) IncrementCompletedJobCount(ctx context.Context, jobID uint) error

func (*Repository) UpdateJobStatus

func (r *Repository) UpdateJobStatus(ctx context.Context, jobID uint, new models.JobStatus) error

func (*Repository) UpdateJobStatusCheckStatus

func (r *Repository) UpdateJobStatusCheckStatus(ctx context.Context, jobID uint, current, new models.JobStatus) error

Jump to

Keyboard shortcuts

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