Documentation ¶
Index ¶
- type City
- type CreateCityParams
- type CreateVenueParams
- type DBTX
- type DeleteVenueParams
- type GetVenueParams
- type Querier
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) CreateCity(ctx context.Context, arg CreateCityParams) error
- func (q *Queries) CreateVenue(ctx context.Context, arg CreateVenueParams) (sql.Result, error)
- func (q *Queries) DeleteVenue(ctx context.Context, arg DeleteVenueParams) error
- func (q *Queries) GetCity(ctx context.Context, slug string) (City, error)
- func (q *Queries) GetVenue(ctx context.Context, arg GetVenueParams) (Venue, error)
- func (q *Queries) ListCities(ctx context.Context) ([]City, error)
- func (q *Queries) ListVenues(ctx context.Context, city string) ([]Venue, error)
- func (q *Queries) UpdateCityName(ctx context.Context, arg UpdateCityNameParams) error
- func (q *Queries) UpdateVenueName(ctx context.Context, arg UpdateVenueNameParams) error
- func (q *Queries) VenueCountByCity(ctx context.Context) ([]VenueCountByCityRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateCityNameParams
- type UpdateVenueNameParams
- type Venue
- type VenueCountByCityRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCityParams ¶
type CreateVenueParams ¶
type CreateVenueParams struct { Slug string `json:"slug"` Name string `json:"name"` City string `json:"city"` SpotifyPlaylist string `json:"spotify_playlist"` Status string `json:"status"` Statuses sql.NullString `json:"statuses"` Tags sql.NullString `json:"tags"` }
type DeleteVenueParams ¶
type GetVenueParams ¶
type Querier ¶
type Querier interface { CreateCity(ctx context.Context, arg CreateCityParams) error CreateVenue(ctx context.Context, arg CreateVenueParams) (sql.Result, error) DeleteVenue(ctx context.Context, arg DeleteVenueParams) error GetCity(ctx context.Context, slug string) (City, error) GetVenue(ctx context.Context, arg GetVenueParams) (Venue, error) ListCities(ctx context.Context) ([]City, error) ListVenues(ctx context.Context, city string) ([]Venue, error) UpdateCityName(ctx context.Context, arg UpdateCityNameParams) error UpdateVenueName(ctx context.Context, arg UpdateVenueNameParams) error VenueCountByCity(ctx context.Context) ([]VenueCountByCityRow, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateCity ¶
func (q *Queries) CreateCity(ctx context.Context, arg CreateCityParams) error
func (*Queries) CreateVenue ¶
func (*Queries) DeleteVenue ¶
func (q *Queries) DeleteVenue(ctx context.Context, arg DeleteVenueParams) error
func (*Queries) ListVenues ¶
func (*Queries) UpdateCityName ¶
func (q *Queries) UpdateCityName(ctx context.Context, arg UpdateCityNameParams) error
func (*Queries) UpdateVenueName ¶
func (q *Queries) UpdateVenueName(ctx context.Context, arg UpdateVenueNameParams) error
func (*Queries) VenueCountByCity ¶
func (q *Queries) VenueCountByCity(ctx context.Context) ([]VenueCountByCityRow, error)
type UpdateCityNameParams ¶
type UpdateVenueNameParams ¶
type Venue ¶
type Venue struct { ID int64 `json:"id"` Status string `json:"status"` Statuses sql.NullString `json:"statuses"` Slug string `json:"slug"` Name string `json:"name"` City string `json:"city"` SpotifyPlaylist string `json:"spotify_playlist"` SongkickID sql.NullString `json:"songkick_id"` Tags sql.NullString `json:"tags"` CreatedAt time.Time `json:"created_at"` }
type VenueCountByCityRow ¶
Click to show internal directories.
Click to hide internal directories.