Versions in this module Expand all Collapse all v1 v1.22.0 Sep 26, 2023 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 VenuesStatus + Statuses sql.NullString + Tags sql.NullString + 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 DeleteVenueParams struct + Slug string + Slug_2 string + type GetVenueParams struct + City string + Slug string + type NullVenuesStatus struct + Valid bool + VenuesStatus VenuesStatus + func (ns *NullVenuesStatus) Scan(value interface{}) error + func (ns NullVenuesStatus) Value() (driver.Value, error) + type Querier interface + CreateCity func(ctx context.Context, arg CreateCityParams) error + CreateVenue func(ctx context.Context, arg CreateVenueParams) (sql.Result, error) + DeleteVenue func(ctx context.Context, arg DeleteVenueParams) 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) 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) 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 struct + Name string + Slug string + type UpdateVenueNameParams struct + Name string + Slug string + type Venue struct + City string + CreatedAt time.Time + ID uint64 + Name string + Slug string + SongkickID sql.NullString + SpotifyPlaylist string + Status VenuesStatus + Statuses sql.NullString + Tags sql.NullString + type VenueCountByCityRow struct + City string + Count int64 + type VenuesStatus string + const VenuesStatusClosed + const VenuesStatusOpen + func (e *VenuesStatus) Scan(src interface{}) error