database

package
v0.0.0-...-4462aca Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 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 PostgresRepository

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

func NewPostgresRepository

func NewPostgresRepository(url string) (*PostgresRepository, error)

func (*PostgresRepository) Close

func (repo *PostgresRepository) Close() error

func (*PostgresRepository) GetUserByEmail

func (repo *PostgresRepository) GetUserByEmail(ctx context.Context, email string) (*models.User, error)

func (*PostgresRepository) GetUserById

func (repo *PostgresRepository) GetUserById(ctx context.Context, id int64) (*models.User, error)

func (*PostgresRepository) InsertUser

func (repo *PostgresRepository) InsertUser(ctx context.Context, user *models.User) (id int64, err error)

Jump to

Keyboard shortcuts

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