dbhandler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnection

func GetConnection() (*gorm.DB, *mongo.Client, error)

GetConnection retrieves the database connection based on the DATABASE_TYPE environment variable.

It returns the *gorm.DB and *mongo.Client connections and an error.

func GetDataGorm

func GetDataGorm(db *gorm.DB) ([]*domain.SMTPConfig, error)

func InsertSMTPConfig

func InsertSMTPConfig(db *gorm.DB, smtpConfig domain.SMTPConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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