Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BookingPostgres ¶
type BookingPostgres struct {
// contains filtered or unexported fields
}
func NewBookingPostgres ¶
func NewBookingPostgres(db *sqlx.DB) *BookingPostgres
func (*BookingPostgres) Create ¶
func (r *BookingPostgres) Create(booking *model.Booking) (int, error)
func (*BookingPostgres) Delete ¶
func (r *BookingPostgres) Delete(id int) error
func (*BookingPostgres) GetByRoomId ¶
func (r *BookingPostgres) GetByRoomId(roomId int) ([]*model.Booking, error)
type Repository ¶
func NewRepository ¶
func NewRepository(db *sqlx.DB) *Repository
type RoomPostgres ¶
type RoomPostgres struct {
// contains filtered or unexported fields
}
func NewRoomPostgres ¶
func NewRoomPostgres(db *sqlx.DB) *RoomPostgres
func (*RoomPostgres) Delete ¶
func (r *RoomPostgres) Delete(id int) error
Click to show internal directories.
Click to hide internal directories.