postgres

package
v0.0.0-...-a8d7802 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 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 Client

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

func NewClient

func NewClient(db *sqlx.DB) Client

func (Client) CreateUser

func (c Client) CreateUser(ctx context.Context, user internal.User) error

func (Client) GetUserByEmail

func (c Client) GetUserByEmail(ctx context.Context, email string) (internal.User, error)

type Traveller

type Traveller struct {
	ID        uuid.UUID `db:"id"`
	FirstName string    `db:"first_name"`
	LastName  string    `db:"last_name"`
	Age       int       `db:"age"`
}

Jump to

Keyboard shortcuts

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