Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectToDatabase ¶
func ConnectToDatabase(ctx context.Context, config *conf.ProjectConfig, driver enums.DriverType) (database.Repository, func(), error)
ConnectToDatabase establishes a connection to a database based on the provided configuration and driver type. It returns a repository interface for database operations, a cleanup function to release resources, and an error if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.