mysql

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *gorm.DB

func IsNotFound added in v1.0.3

func IsNotFound(err error) bool

func OpenDB

func OpenDB(c *Config)

func SqlDb added in v1.0.3

func SqlDb() *sql.DB

Types

type Config added in v1.0.1

type Config struct {
	Account  string //"root"
	Password string //"123456"
	Addr     string //"127.0.0.1:3306"
	DbName   string //"game"
}

Jump to

Keyboard shortcuts

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