Documentation ¶
Index ¶
- type Booking
- type BookingsStatus
- type CreateBookingParams
- type DBTX
- type GetConfirmedBookingsByDateAndCourseParams
- type NullBookingsStatus
- type Querier
- type Queries
- func (q *Queries) CreateBooking(ctx context.Context, arg *CreateBookingParams) (int64, error)
- func (q *Queries) GetABooking(ctx context.Context, id int64) (Booking, error)
- func (q *Queries) GetConfirmedBookingsByDateAndCourse(ctx context.Context, arg *GetConfirmedBookingsByDateAndCourseParams) ([]Booking, error)
- func (q *Queries) ListUserBookings(ctx context.Context, userID string) ([]Booking, error)
- func (q *Queries) UpdateAndConfirm(ctx context.Context, arg *UpdateAndConfirmParams) error
- func (q *Queries) UpdateBooking(ctx context.Context, arg *UpdateBookingParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type UpdateAndConfirmParams
- type UpdateBookingParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookingsStatus ¶
type BookingsStatus string
const ( BookingsStatusConfirmed BookingsStatus = "confirmed" BookingsStatusRequested BookingsStatus = "requested" )
func (*BookingsStatus) Scan ¶
func (e *BookingsStatus) Scan(src interface{}) error
type CreateBookingParams ¶
type NullBookingsStatus ¶
type NullBookingsStatus struct { BookingsStatus BookingsStatus Valid bool // Valid is true if BookingsStatus is not NULL }
func (*NullBookingsStatus) Scan ¶
func (ns *NullBookingsStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Querier ¶
type Querier interface { CreateBooking(ctx context.Context, arg *CreateBookingParams) (int64, error) GetABooking(ctx context.Context, id int64) (Booking, error) GetConfirmedBookingsByDateAndCourse(ctx context.Context, arg *GetConfirmedBookingsByDateAndCourseParams) ([]Booking, error) ListUserBookings(ctx context.Context, userID string) ([]Booking, error) UpdateAndConfirm(ctx context.Context, arg *UpdateAndConfirmParams) error UpdateBooking(ctx context.Context, arg *UpdateBookingParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateBooking ¶
func (*Queries) GetABooking ¶
func (*Queries) GetConfirmedBookingsByDateAndCourse ¶
func (*Queries) ListUserBookings ¶
func (*Queries) UpdateAndConfirm ¶
func (q *Queries) UpdateAndConfirm(ctx context.Context, arg *UpdateAndConfirmParams) error
func (*Queries) UpdateBooking ¶
func (q *Queries) UpdateBooking(ctx context.Context, arg *UpdateBookingParams) error
type UpdateAndConfirmParams ¶
type UpdateBookingParams ¶
Click to show internal directories.
Click to hide internal directories.