NewReservationRepo
No overview available.
def NewReservationRepo(
db: *sqlx.DB
) - > *ReservationRepo
Initializes and returns a new instance of ReservationRepo. This function is used to create a repository object for managing reservation data, providing an interface to interact with the database.
Parameters
| Name | Type | Description |
|---|---|---|
| db | *sqlx.DB | The database connection object that the ReservationRepo will use to perform database operations. |
Returns
| Type | Description |
|---|---|
*ReservationRepo | A new ReservationRepo instance configured with the provided database connection. |