Skip to main content

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

NameTypeDescription
db*sqlx.DBThe database connection object that the ReservationRepo will use to perform database operations.

Returns

TypeDescription
*ReservationRepoA new ReservationRepo instance configured with the provided database connection.