postgres

package
v0.0.0-...-06a4187 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserRepository

func NewUserRepository(conn *sql.DB) users.UserStorer

Types

type UserRepository

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

func (UserRepository) Insert

func (u UserRepository) Insert(ctx context.Context, user *users.User) error

func (UserRepository) SelectByEmail

func (u UserRepository) SelectByEmail(ctx context.Context, email string) (users.User, error)

func (UserRepository) SelectByID

func (u UserRepository) SelectByID(ctx context.Context, id int64) (users.User, error)

func (UserRepository) Update

func (u UserRepository) Update(ctx context.Context, user *users.User) error

Jump to

Keyboard shortcuts

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