Help us shape the future of Go! Take the 2026 Go Developer Survey

archsqlc

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 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 Athlete

type Athlete struct {
	NationalID  string
	FirstName   sql.NullString
	LastName    sql.NullString
	Initials    sql.NullString
	DateOfBirth sql.NullTime
	Height      sql.NullString
	Weight      sql.NullString
}

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 GetRaceReportParams

type GetRaceReportParams struct {
	SporttiID string
	SessionID int32
}

type Measurement

type Measurement struct {
	MeasurementGroupID int32
	MeasurementID      sql.NullInt32
	NationalID         sql.NullString
	Discipline         sql.NullString
	SessionName        sql.NullString
	Place              sql.NullString
	RaceID             sql.NullInt32
	StartTime          sql.NullTime
	StopTime           sql.NullTime
	NbSegments         sql.NullInt32
	Comment            sql.NullString
}

type Queries

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

func New

func New(db DBTX) *Queries

func Prepare

func Prepare(ctx context.Context, db DBTX) (*Queries, error)

func (*Queries) Close

func (q *Queries) Close() error

func (*Queries) DeleteAthleteByNationalID

func (q *Queries) DeleteAthleteByNationalID(ctx context.Context, nationalID string) (string, error)

func (*Queries) GetAthleteBySporttiID

func (q *Queries) GetAthleteBySporttiID(ctx context.Context, nationalID string) (Athlete, error)

func (*Queries) GetMeasurementsBySporttiID

func (q *Queries) GetMeasurementsBySporttiID(ctx context.Context, nationalID sql.NullString) ([]Measurement, error)

func (*Queries) GetRaceReport

func (q *Queries) GetRaceReport(ctx context.Context, arg GetRaceReportParams) (string, error)

func (*Queries) GetRaceReportSessionIDsBySporttiID

func (q *Queries) GetRaceReportSessionIDsBySporttiID(ctx context.Context, sporttiID string) ([]int32, error)

func (*Queries) GetSporttiIDsBySessionID added in v1.3.3

func (q *Queries) GetSporttiIDsBySessionID(ctx context.Context, sessionID int32) ([]string, error)

func (*Queries) UpsertAthlete

func (q *Queries) UpsertAthlete(ctx context.Context, arg UpsertAthleteParams) error

func (*Queries) UpsertMeasurement

func (q *Queries) UpsertMeasurement(ctx context.Context, arg UpsertMeasurementParams) error

func (*Queries) UpsertReport added in v1.3.3

func (q *Queries) UpsertReport(ctx context.Context, arg UpsertReportParams) error

func (*Queries) UpsertReportUser added in v1.3.3

func (q *Queries) UpsertReportUser(ctx context.Context, arg UpsertReportUserParams) error

func (*Queries) WithTx

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

type Report

type Report struct {
	SessionID  int32
	RaceReport string
}

type ReportUser added in v1.3.3

type ReportUser struct {
	SessionID int32
	SporttiID string
}

type UpsertAthleteParams

type UpsertAthleteParams struct {
	NationalID  string
	FirstName   sql.NullString
	LastName    sql.NullString
	Initials    sql.NullString
	DateOfBirth sql.NullTime
	Height      sql.NullString
	Weight      sql.NullString
}

type UpsertMeasurementParams

type UpsertMeasurementParams struct {
	MeasurementGroupID int32
	MeasurementID      sql.NullInt32
	NationalID         sql.NullString
	Discipline         sql.NullString
	SessionName        sql.NullString
	Place              sql.NullString
	RaceID             sql.NullInt32
	StartTime          sql.NullTime
	StopTime           sql.NullTime
	NbSegments         sql.NullInt32
	Comment            sql.NullString
}

type UpsertReportParams added in v1.3.3

type UpsertReportParams struct {
	SessionID  int32
	RaceReport string
}

type UpsertReportUserParams added in v1.3.3

type UpsertReportUserParams struct {
	SessionID int32
	SporttiID string
}

Jump to

Keyboard shortcuts

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