Skip to main content

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

NameTypeDescription
db*sqlx.DBThe database connection pool to be used by the repository's underlying components for database interactions.

Returns

TypeDescription
interfaces.RepositoryA new repository instance that implements the interfaces.Repository interface.