jets

package
v0.0.0-...-1448b23 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type Jet

type Jet struct {
	ID      int32
	PilotID int32
	Age     int32
	Name    string
	Color   string
}

type Language

type Language struct {
	ID       int32
	Language string
}

type Pilot

type Pilot struct {
	ID   int32
	Name string
}

type PilotLanguage

type PilotLanguage struct {
	PilotID    int32
	LanguageID int32
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CountPilots

func (q *Queries) CountPilots(ctx context.Context) (int64, error)

func (*Queries) DeletePilot

func (q *Queries) DeletePilot(ctx context.Context, id int32) error

func (*Queries) ListPilots

func (q *Queries) ListPilots(ctx context.Context) ([]Pilot, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

Jump to

Keyboard shortcuts

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