jets

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 2 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 {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.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 *sql.Tx) *Queries

Jump to

Keyboard shortcuts

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