NewRepository
No overview available.
def NewRepository(
db: *sqlx.DB
) - > interfaces.Repository
Creates and returns a new repository instance, initializing it with concrete implementations for cached output and reservation functionalities. Callers use this to obtain a fully configured repository for database operations.
Parameters
| Name | Type | Description |
|---|---|---|
| db | *sqlx.DB | The database connection pool to be used by the repository's underlying components for database interactions. |
Returns
| Type | Description |
|---|---|
interfaces.Repository | A new repository instance that implements the interfaces.Repository interface. |