Documentation ¶
Index ¶
- type DBTX
- type Email
- type Event
- type GetEventByIDRow
- type InsertEventParams
- type Queries
- func (q *Queries) EmailExists(ctx context.Context, email string) (bool, error)
- func (q *Queries) GetEventByID(ctx context.Context, id int32) (GetEventByIDRow, error)
- func (q *Queries) GetEventIDByPublicID(ctx context.Context, id int32) (uuid.UUID, error)
- func (q *Queries) InsertEmail(ctx context.Context, email string) (int32, error)
- func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) (int32, error)
- func (q *Queries) SoftDeleteEvent(ctx context.Context, id int32) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetEventByIDRow ¶
type GetEventByIDRow struct { ID int32 PublicID uuid.UUID EmailID sql.NullInt32 EmailAddress sql.NullString IsEmailConfirmed bool EmailConfirmed sql.NullTime HostName sql.NullString Title string Description string Venue sql.NullString StartTime time.Time Duration pgtype.Interval CreatedAt time.Time IsConfirmed bool ConfirmedAt sql.NullTime IsDeleted bool DeletedAt sql.NullTime }
type InsertEventParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) EmailExists ¶
EmailExists checks if an email address is known.
func (*Queries) GetEventByID ¶
GetEventByID returns an event by ID.
func (*Queries) GetEventIDByPublicID ¶
GetEventIDByPublicID returns an event ID from its public ID.
func (*Queries) InsertEmail ¶
InsertEmail inserts an email. The inserted ID is returned.
func (*Queries) InsertEvent ¶
InsertEvent inserts a new event into the database, returning its new ID.
func (*Queries) SoftDeleteEvent ¶
SoftDeleteEvent soft deletes an event.
Click to show internal directories.
Click to hide internal directories.