Documentation ¶
Index ¶
- type City
- type CreateCityParams
- type CreateVenueParams
- type DBTX
- type GetVenueParams
- type NullStatus
- type Querier
- type Queries
- func (q *Queries) Close() error
- func (q *Queries) CreateCity(ctx context.Context, arg CreateCityParams) (City, error)
- func (q *Queries) CreateVenue(ctx context.Context, arg CreateVenueParams) (int32, error)
- func (q *Queries) DeleteVenue(ctx context.Context, slug string) 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) (int32, error)
- func (q *Queries) VenueCountByCity(ctx context.Context) ([]VenueCountByCityRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Status
- 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 GetVenueParams ¶
type NullStatus ¶
type NullStatus struct { Status Status `json:"status"` Valid bool `json:"valid"` // Valid is true if Status is not NULL }
func (*NullStatus) Scan ¶
func (ns *NullStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { // Create a new city. The slug must be unique. // This is the second line of the comment // This is the third line CreateCity(ctx context.Context, arg CreateCityParams) (City, error) CreateVenue(ctx context.Context, arg CreateVenueParams) (int32, error) DeleteVenue(ctx context.Context, slug string) 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) (int32, error) VenueCountByCity(ctx context.Context) ([]VenueCountByCityRow, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateCity ¶
Create a new city. The slug must be unique. This is the second line of the comment This is the third line
func (*Queries) CreateVenue ¶
func (*Queries) ListVenues ¶
func (*Queries) UpdateCityName ¶
func (q *Queries) UpdateCityName(ctx context.Context, arg UpdateCityNameParams) error
func (*Queries) UpdateVenueName ¶
func (*Queries) VenueCountByCity ¶
func (q *Queries) VenueCountByCity(ctx context.Context) ([]VenueCountByCityRow, error)
type UpdateCityNameParams ¶
type UpdateVenueNameParams ¶
type Venue ¶
type Venue struct { ID int32 `json:"id"` Status Status `json:"status"` Statuses []Status `json:"statuses"` // This value appears in public URLs Slug string `json:"slug"` Name string `json:"name"` City string `json:"city"` SpotifyPlaylist string `json:"spotify_playlist"` SongkickID sql.NullString `json:"songkick_id"` Tags []string `json:"tags"` CreatedAt time.Time `json:"created_at"` }
Venues are places where muisc happens
type VenueCountByCityRow ¶
Click to show internal directories.
Click to hide internal directories.