Documentation ¶
Index ¶
- type City
- type CreateCityParams
- type CreateVenueParams
- type DBTX
- type DeleteVenueParams
- type GetVenueParams
- type NullVenuesStatus
- 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
- type VenuesStatus
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 VenuesStatus `json:"status"` Statuses sql.NullString `json:"statuses"` Tags sql.NullString `json:"tags"` }
type DeleteVenueParams ¶
type GetVenueParams ¶
type NullVenuesStatus ¶
type NullVenuesStatus struct { VenuesStatus VenuesStatus `json:"venues_status"` Valid bool `json:"valid"` // Valid is true if VenuesStatus is not NULL }
func (*NullVenuesStatus) Scan ¶
func (ns *NullVenuesStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
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 uint64 `json:"id"` // Venues can be either open or closed Status VenuesStatus `json:"status"` Statuses sql.NullString `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 sql.NullString `json:"tags"` CreatedAt time.Time `json:"created_at"` }
Venues are places where muisc happens
type VenueCountByCityRow ¶
type VenuesStatus ¶
type VenuesStatus string
const ( VenuesStatusOpen VenuesStatus = "open" VenuesStatusClosed VenuesStatus = "closed" )
func (*VenuesStatus) Scan ¶
func (e *VenuesStatus) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.