mysql_database

package
v0.0.0-...-2ef9476 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Util *util
View Source
var Version string

Functions

func CheckMySQLEngine

func CheckMySQLEngine(_engine *xorm.Engine) bool

func NewSqlFileLogger

func NewSqlFileLogger(_prefix string, _flag int) *fileLogger

newLogger let you customrize your logger prefix and flag

Types

type MySQLConfigFormat

type MySQLConfigFormat struct {
	Address  string `json:"address" yaml:"address"`
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
	DBName   string `json:"db_name" yaml:"db_name"`
}

type MySQLPool

type MySQLPool interface {
	GetEngine() *xorm.Engine
}

Jump to

Keyboard shortcuts

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