conn

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToDatabase

func ConnectToDatabase(ctx context.Context, logger *zap.Logger, 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL