postgresUsersRepo

package
v0.0.0-...-8ae5609 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

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

func New

func New(db *sql.DB) *UserRepository

func (*UserRepository) Create

func (r *UserRepository) Create(ctx context.Context, user *domain.SignUpInput) (*domain.User, error)

func (*UserRepository) DeleteByID

func (r *UserRepository) DeleteByID(ctx context.Context, id int) error

func (*UserRepository) GetAll

func (r *UserRepository) GetAll(ctx context.Context) ([]*domain.User, error)

func (*UserRepository) GetByEmail

func (r *UserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)

func (*UserRepository) GetByID

func (r *UserRepository) GetByID(ctx context.Context, id int) (*domain.User, error)

func (*UserRepository) UpdateByID

func (r *UserRepository) UpdateByID(ctx context.Context, user *domain.UserUpdate, id int) (*domain.UserUpdate, error)

Jump to

Keyboard shortcuts

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