gormdb

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *gorm.DB
)

DB Gorm.

Functions

func InitDB

func InitDB()

func InitDBWithParameters

func InitDBWithParameters(params DbInfo)

func OpenDB

func OpenDB(dbDriver string, dbInfo string)

InitDB database.

Types

type DbInfo

type DbInfo struct {
	DbDriver   string
	DbHost     string
	DbPort     int
	DbUser     string
	DbPassword string
	DbName     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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