conn

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: MIT Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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