postgresql

package
v0.0.0-...-a6764fa Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	ID        string        `db:"id"`
	FirstName string        `db:"first_name"`
	LastName  string        `db:"last_name"`
	BirthDate time.Time     `db:"birth_date"`
	Gender    models.Gender `db:"gender"`
	Biography string        `db:"biography"`
	City      string        `db:"city"`
}

type ProfileRepository

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

func NewProfileRepository

func NewProfileRepository(conn *pgxpool.Pool) *ProfileRepository

func (ProfileRepository) CreateProfile

func (r ProfileRepository) CreateProfile(ctx context.Context, profile *models.Profile) error

func (ProfileRepository) DeleteProfile

func (r ProfileRepository) DeleteProfile(ctx context.Context, id string) error

func (ProfileRepository) GetProfile

func (r ProfileRepository) GetProfile(ctx context.Context, id string) (*models.Profile, error)

func (ProfileRepository) SearchProfile

func (r ProfileRepository) SearchProfile(ctx context.Context, firstName, lastName string) ([]*models.Profile, error)

Jump to

Keyboard shortcuts

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