postgresrepository

package
v0.0.0-...-5506365 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgreDB

func NewPostgreDB(cfg *repository.DBConfig) (*sqlx.DB, error)

NewPostgreDB creates a new connection to the PostgreSQL database.

Types

type CastsRepository

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

func NewCastsRepository

func NewCastsRepository(db *sqlx.DB, logger *logrus.Logger) *CastsRepository

func (*CastsRepository) GetCast

func (r *CastsRepository) GetCast(ctx context.Context, id int32, professionsIds []int32) (cast models.Cast, err error)

func (*CastsRepository) GetProfessions

func (r *CastsRepository) GetProfessions(ctx context.Context) (professions []models.Profession, err error)

func (*CastsRepository) Shutdown

func (r *CastsRepository) Shutdown()

Jump to

Keyboard shortcuts

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