repositories

package
v0.0.0-...-c60c4f7 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParamsForFetchProjects

type ParamsForFetchProjects struct {
	contexts.CommonParamsForFetch
}

type ProjectRepository

type ProjectRepository interface {
	Create(ctx context.Context, project *domains.Project) (int64, error)
	GetByID(ctx context.Context, id int64) (*domains.Project, error)
	Fetch(ctx context.Context, p ParamsForFetchProjects) ([]*domains.Project, int64, error)
	Update(ctx context.Context, project *domains.Project, fieldsToUpdate []string) error
	DeleteById(ctx context.Context, id int64) error
}

func NewPgsqlProjectRepository

func NewPgsqlProjectRepository(mdbi *datastore.MasterDbInstance, sdbi *datastore.SlaveDbInstance) ProjectRepository

NewPgsqlProjectRepository will create new an projectRepository object representation of ProjectRepository interface

Jump to

Keyboard shortcuts

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