postgres

package
v0.0.0-...-f21d557 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 4 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 NewUserRepository

func NewUserRepository(tableName string, db *sql.DB) UserRepository

func (UserRepository) Find

func (r UserRepository) Find(ctx context.Context, userID string) (*domain.User, error)

func (UserRepository) FindByPhone

func (r UserRepository) FindByPhone(ctx context.Context, phone string) (*domain.User, error)

func (UserRepository) Save

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

func (UserRepository) Update

func (r UserRepository) 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