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

func NewUserPostgresRepo

func NewUserPostgresRepo(db *sqlx.DB) user_microservice_domain.UserRepo

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 (*UserPostrgesRepo) SelectByEmail

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

func (*UserPostrgesRepo) SelectByID

func (*UserPostrgesRepo) SelectByUsername

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

func (*UserPostrgesRepo) Update

Jump to

Keyboard shortcuts

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