Versions in this module Expand all Collapse all v1 v1.27.1 May 28, 2024 Changes in this version + type City struct + Name string + Slug string + type CreateCityParams struct + Name string + Slug string + type CreateVenueParams struct + City string + Name string + Slug string + SpotifyPlaylist string + Status Status + Statuses []Status + Tags []string + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type GetVenueParams struct + City string + Slug string + type NullStatus struct + Status Status + Valid bool + func (ns *NullStatus) Scan(value interface{}) error + func (ns NullStatus) Value() (driver.Value, error) + type Querier interface + CreateCity func(ctx context.Context, arg CreateCityParams) (City, error) + CreateVenue func(ctx context.Context, arg CreateVenueParams) (int32, error) + DeleteVenue func(ctx context.Context, slug string) error + GetCity func(ctx context.Context, slug string) (City, error) + GetVenue func(ctx context.Context, arg GetVenueParams) (Venue, error) + ListCities func(ctx context.Context) ([]City, error) + ListVenues func(ctx context.Context, city string) ([]Venue, error) + UpdateCityName func(ctx context.Context, arg UpdateCityNameParams) error + UpdateVenueName func(ctx context.Context, arg UpdateVenueNameParams) (int32, error) + VenueCountByCity func(ctx context.Context) ([]VenueCountByCityRow, error) + type Queries struct + func New(db DBTX) *Queries + func Prepare(ctx context.Context, db DBTX) (*Queries, error) + 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 string + const StatusClosed + const StatusOpen + func (e *Status) Scan(src interface{}) error + type UpdateCityNameParams struct + Name string + Slug string + type UpdateVenueNameParams struct + Name string + Slug string + type Venue struct + City string + CreatedAt time.Time + ID int32 + Name string + Slug string + SongkickID sql.NullString + SpotifyPlaylist string + Status Status + Statuses []Status + Tags []string + type VenueCountByCityRow struct + City string + Count int64