postgres

package
v0.0.0-...-b813b93 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 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 Client

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

func NewClient

func NewClient(dbExec sqlx.ExtContext) Client

func (Client) Create

func (Client) DeleteTraveller

func (c Client) DeleteTraveller()

func (Client) Get

func (c Client) Get(ctx context.Context, id uuid.UUID) (internal.Traveller, error)

func (Client) Select

func (c Client) Select(ctx context.Context, ids []uuid.UUID, limit, offset int) ([]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