database

package
v0.0.0-...-3b1d222 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DuplicateMysqlErr = 1062
)

Define mysql error numbers

Variables

View Source
var Db *gorm.DB

Functions

func InitDb

func InitDb(database *config.DataBaseConfig)

func Migrate

func Migrate(model interface{}) error

Create table each model

Types

This section is empty.

Jump to

Keyboard shortcuts

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