postgresql

package
v0.0.0-...-704a905 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInsertUser = errors.New("error inserting user")
	ErrorUpdateUser = errors.New("error updating user")
	ErrorDeleteUser = errors.New("error deleting user")
	ErrorSelectUser = errors.New("error selecting user")
)

Functions

This section is empty.

Types

type UserPostrgesRepo

type UserPostrgesRepo struct {
	DB *sqlx.DB
}

func (*UserPostrgesRepo) Delete

func (a *UserPostrgesRepo) Delete(id uint) error

func (*UserPostrgesRepo) GetSize

func (a *UserPostrgesRepo) GetSize() (int, error)

func (*UserPostrgesRepo) Insert

func (a *UserPostrgesRepo) Insert(user *domain.User) error

func (*UserPostrgesRepo) SelectByEmail

func (a *UserPostrgesRepo) SelectByEmail(email string) (*domain.User, error)

func (*UserPostrgesRepo) SelectByID

func (a *UserPostrgesRepo) SelectByID(id uint) (*domain.User, error)

func (*UserPostrgesRepo) SelectByUsername

func (a *UserPostrgesRepo) SelectByUsername(username string) (*domain.User, error)

func (*UserPostrgesRepo) Update

func (a *UserPostrgesRepo) Update(id uint, user *domain.User) error

Jump to

Keyboard shortcuts

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