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) GetProfessions ¶
func (r *CastsRepository) GetProfessions(ctx context.Context) (professions []models.Profession, err error)
func (*CastsRepository) Shutdown ¶
func (r *CastsRepository) Shutdown()
Click to show internal directories.
Click to hide internal directories.