Documentation ¶
Index ¶
- func Connect(ctx context.Context) (*pgxpool.Pool, error)
- type Circuit
- type Constructor
- type ConstructorResult
- type ConstructorStanding
- type DBTX
- type Driver
- type DriverStanding
- type GetDriverStandingsByYearRow
- type LapTime
- type PitStop
- type Qualifying
- type Queries
- func (q *Queries) GetDriverStandingsByYear(ctx context.Context, year int32) ([]GetDriverStandingsByYearRow, error)
- func (q *Queries) SaveCircuits(ctx context.Context, arg []SaveCircuitsParams) (int64, error)
- func (q *Queries) SaveConstructorResults(ctx context.Context, arg []SaveConstructorResultsParams) (int64, error)
- func (q *Queries) SaveConstructorStandings(ctx context.Context, arg []SaveConstructorStandingsParams) (int64, error)
- func (q *Queries) SaveConstructors(ctx context.Context, arg []SaveConstructorsParams) (int64, error)
- func (q *Queries) SaveDriverStandings(ctx context.Context, arg []SaveDriverStandingsParams) (int64, error)
- func (q *Queries) SaveDrivers(ctx context.Context, arg []SaveDriversParams) (int64, error)
- func (q *Queries) SaveLapTimes(ctx context.Context, arg []SaveLapTimesParams) (int64, error)
- func (q *Queries) SavePitStops(ctx context.Context, arg []SavePitStopsParams) (int64, error)
- func (q *Queries) SaveQualifyingResults(ctx context.Context, arg []SaveQualifyingResultsParams) (int64, error)
- func (q *Queries) SaveRaces(ctx context.Context, arg []SaveRacesParams) (int64, error)
- func (q *Queries) SaveResults(ctx context.Context, arg []SaveResultsParams) (int64, error)
- func (q *Queries) SaveSeasons(ctx context.Context, arg []SaveSeasonsParams) (int64, error)
- func (q *Queries) SaveSprintResults(ctx context.Context, arg []SaveSprintResultsParams) (int64, error)
- func (q *Queries) SaveStatuses(ctx context.Context, arg []SaveStatusesParams) (int64, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type Race
- type Result
- type SaveCircuitsParams
- type SaveConstructorResultsParams
- type SaveConstructorStandingsParams
- type SaveConstructorsParams
- type SaveDriverStandingsParams
- type SaveDriversParams
- type SaveLapTimesParams
- type SavePitStopsParams
- type SaveQualifyingResultsParams
- type SaveRacesParams
- type SaveResultsParams
- type SaveSeasonsParams
- type SaveSprintResultsParams
- type SaveStatusesParams
- type Season
- type SprintResult
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Constructor ¶
type ConstructorResult ¶
type ConstructorStanding ¶
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 CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type DriverStanding ¶
type Qualifying ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) GetDriverStandingsByYear ¶
func (*Queries) SaveCircuits ¶
func (*Queries) SaveConstructorResults ¶
func (*Queries) SaveConstructorStandings ¶
func (*Queries) SaveConstructors ¶
func (*Queries) SaveDriverStandings ¶
func (*Queries) SaveDrivers ¶
func (*Queries) SaveLapTimes ¶
func (*Queries) SavePitStops ¶
func (*Queries) SaveQualifyingResults ¶
func (*Queries) SaveResults ¶
func (*Queries) SaveSeasons ¶
func (*Queries) SaveSprintResults ¶
func (*Queries) SaveStatuses ¶
type Race ¶
type Race struct { ID int32 Year int32 Round int32 CircuitID int32 Name string Date time.Time Time *time.Time Url *string Fp1Date *time.Time Fp1Time *time.Time Fp2Date *time.Time Fp2Time *time.Time Fp3Date *time.Time Fp3Time *time.Time QualiDate *time.Time QualiTime *time.Time SprintDate *time.Time SprintTime *time.Time }
type Result ¶
type Result struct { ID int32 RaceID int32 DriverID int32 ConstructorID int32 Number *int32 Grid int32 Position *int32 PosText string PosOrder int32 Points pgtype.Numeric Laps int32 Time *string Milliseconds *int32 FastestLap *int32 Rank *int32 FastestLapTime *string FastestLapSpeed *string StatusID *int32 }
type SaveCircuitsParams ¶
type SaveConstructorsParams ¶
type SaveDriversParams ¶
type SaveLapTimesParams ¶
type SavePitStopsParams ¶
type SaveRacesParams ¶
type SaveRacesParams struct { ID int32 Year int32 Round int32 CircuitID int32 Name string Date time.Time Time *time.Time Url *string Fp1Date *time.Time Fp1Time *time.Time Fp2Date *time.Time Fp2Time *time.Time Fp3Date *time.Time Fp3Time *time.Time QualiDate *time.Time QualiTime *time.Time SprintDate *time.Time SprintTime *time.Time }
type SaveResultsParams ¶
type SaveResultsParams struct { ID int32 RaceID int32 DriverID int32 ConstructorID int32 Number *int32 Grid int32 Position *int32 PosText string PosOrder int32 Points decimal.Decimal Laps int32 Time *string Milliseconds *int32 FastestLap *int32 Rank *int32 FastestLapTime *string FastestLapSpeed *string StatusID *int32 }
type SaveSeasonsParams ¶
type SaveSprintResultsParams ¶
type SaveStatusesParams ¶
type SprintResult ¶
Click to show internal directories.
Click to hide internal directories.