postgres

package
v0.0.0-...-20a5a9c Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersRepository

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

func NewUsersRepository

func NewUsersRepository(db *postgres.DB) *UsersRepository

func (*UsersRepository) Delete

func (r *UsersRepository) Delete(ctx context.Context, id uuid.UUID) error

func (*UsersRepository) Get

func (r *UsersRepository) Get(ctx context.Context, id uuid.UUID) (domain.User, error)

func (*UsersRepository) GetByCredentials

func (r *UsersRepository) GetByCredentials(ctx context.Context, email, password string) (domain.User, error)

func (*UsersRepository) Save

func (r *UsersRepository) Save(ctx context.Context, user *domain.User) error

func (*UsersRepository) Update

func (r *UsersRepository) Update(ctx context.Context, user *domain.User) error

Jump to

Keyboard shortcuts

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