database

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB()

ConnectDB connects to a MySQL database using a configuration file and logs a message if successful.

func GetConn

func GetConn() *gorm.DB

GetConn returns a pointer to a GORM db connection.

func GetModel

func GetModel(value interface{}) *gorm.DB

GetModel returns a GORM db object for a given model.

Types

This section is empty.

Jump to

Keyboard shortcuts

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