db

package
v0.0.0-...-6e34661 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

Functions

func GetDB

func GetDB() *gorm.DB

GetDB returns the database instance.

func InitDB

func InitDB(dialector gorm.Dialector, opts ...gorm.Option)

InitDB initializes the database connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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