repository

package
v0.0.0-...-db83385 Latest Latest
Warning

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

Go to latest
Published: Jul 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 UserRepositoryPostgreSQL

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

func NewUserRepositoryPostgreSQL

func NewUserRepositoryPostgreSQL(db *sql.DB) *UserRepositoryPostgreSQL

func (*UserRepositoryPostgreSQL) DeleteOne

func (r *UserRepositoryPostgreSQL) DeleteOne(ctx context.Context, userId int64) error

func (*UserRepositoryPostgreSQL) GetAll

func (r *UserRepositoryPostgreSQL) GetAll(ctx context.Context) ([]*user.User, error)

func (*UserRepositoryPostgreSQL) GetOneById

func (r *UserRepositoryPostgreSQL) GetOneById(ctx context.Context, userId int64) (*user.User, error)

func (*UserRepositoryPostgreSQL) InsertMany

func (r *UserRepositoryPostgreSQL) InsertMany(ctx context.Context, users []user.User) error

func (*UserRepositoryPostgreSQL) InsertOne

func (r *UserRepositoryPostgreSQL) InsertOne(ctx context.Context, user user.User) (*user.User, error)

func (*UserRepositoryPostgreSQL) UpdateOneById

func (r *UserRepositoryPostgreSQL) UpdateOneById(ctx context.Context, userId int64, user user.User) error

Jump to

Keyboard shortcuts

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