Versions in this module Expand all Collapse all v1 v1.22.0 Sep 26, 2023 Changes in this version + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type Jet struct + Age int32 + Color string + ID int32 + Name string + PilotID int32 + type Language struct + ID int32 + Language string + type Pilot struct + ID int32 + Name string + type PilotLanguage struct + LanguageID int32 + PilotID int32 + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) CountPilots(ctx context.Context) (int64, error) + func (q *Queries) DeletePilot(ctx context.Context, id int32) error + func (q *Queries) ListPilots(ctx context.Context) ([]Pilot, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries