postgresrepository

package
v0.0.0-...-d9bd7fb Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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)

Types

type ProfilesRepository

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

func NewProfilesRepository

func NewProfilesRepository(db *sqlx.DB, logger *logrus.Logger) *ProfilesRepository

func (*ProfilesRepository) CreateProfile

func (r *ProfilesRepository) CreateProfile(ctx context.Context, profile *models.Profile) (err error)

func (*ProfilesRepository) DeleteProfile

func (r *ProfilesRepository) DeleteProfile(ctx context.Context, accountID string) (restx repository.Transaction, err error)

func (*ProfilesRepository) GetEmail

func (r *ProfilesRepository) GetEmail(ctx context.Context, accountID string) (email string, err error)

func (*ProfilesRepository) GetProfile

func (r *ProfilesRepository) GetProfile(ctx context.Context, accountID string) (profile models.RepositoryProfile, err error)

func (*ProfilesRepository) GetProfilePictureID

func (r *ProfilesRepository) GetProfilePictureID(ctx context.Context, accountID string) (pictureID string, err error)

func (*ProfilesRepository) UpdateProfilePictureID

func (r *ProfilesRepository) UpdateProfilePictureID(ctx context.Context, accountID, pictureID string) (err error)

Jump to

Keyboard shortcuts

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