postgres

package
v0.0.0-...-eb24ba2 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 6 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(dbExec sqlx.ExtContext) Client

func (Client) CreateTraveller

func (c Client) CreateTraveller()

func (Client) DeleteTraveller

func (c Client) DeleteTraveller()

func (Client) GetTraveller

func (c Client) GetTraveller(ctx context.Context, id uuid.UUID) (internal.Traveller, 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