Documentation
¶
Index ¶
- type ClimateNormal
- type CreateClimateParams
- type CreatePlaceParams
- type DBTX
- type ListPlacesParams
- type Place
- type Querier
- type Queries
- func (q *Queries) CreateClimate(ctx context.Context, arg CreateClimateParams) (ClimateNormal, error)
- func (q *Queries) CreatePlace(ctx context.Context, arg CreatePlaceParams) (Place, error)
- func (q *Queries) DeletePlace(ctx context.Context, id int32) error
- func (q *Queries) GetClimate(ctx context.Context, placeID pgtype.Int4) (ClimateNormal, error)
- func (q *Queries) GetPlace(ctx context.Context, id int32) (Place, error)
- func (q *Queries) ListPlaces(ctx context.Context, arg ListPlacesParams) ([]Place, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClimateNormal ¶
type ClimateNormal struct { ID int32 `json:"id"` PlaceID pgtype.Int4 `json:"place_id"` // Range: 1 to 12 Month int32 `json:"month"` Tavg pgtype.Numeric `json:"tavg"` Tmin pgtype.Numeric `json:"tmin"` Tmax pgtype.Numeric `json:"tmax"` Prcp pgtype.Numeric `json:"prcp"` Wspd pgtype.Numeric `json:"wspd"` Pres pgtype.Numeric `json:"pres"` Tsun pgtype.Int4 `json:"tsun"` LastUpdated pgtype.Timestamptz `json:"last_updated"` }
type CreateClimateParams ¶
type CreateClimateParams struct { PlaceID pgtype.Int4 `json:"place_id"` Month int32 `json:"month"` Tavg pgtype.Numeric `json:"tavg"` Tmin pgtype.Numeric `json:"tmin"` Tmax pgtype.Numeric `json:"tmax"` Prcp pgtype.Numeric `json:"prcp"` Wspd pgtype.Numeric `json:"wspd"` Pres pgtype.Numeric `json:"pres"` Tsun pgtype.Int4 `json:"tsun"` LastUpdated pgtype.Timestamptz `json:"last_updated"` }
type CreatePlaceParams ¶
type ListPlacesParams ¶
type Querier ¶
type Querier interface { CreateClimate(ctx context.Context, arg CreateClimateParams) (ClimateNormal, error) CreatePlace(ctx context.Context, arg CreatePlaceParams) (Place, error) DeletePlace(ctx context.Context, id int32) error GetClimate(ctx context.Context, placeID pgtype.Int4) (ClimateNormal, error) GetPlace(ctx context.Context, id int32) (Place, error) ListPlaces(ctx context.Context, arg ListPlacesParams) ([]Place, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateClimate ¶
func (q *Queries) CreateClimate(ctx context.Context, arg CreateClimateParams) (ClimateNormal, error)
func (*Queries) CreatePlace ¶
func (*Queries) GetClimate ¶
func (*Queries) ListPlaces ¶
Click to show internal directories.
Click to hide internal directories.