db

package
v0.0.0-...-75bc1fc Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SingletonMain = "db"
)

Variables

This section is empty.

Functions

func GetDb

func GetDb(args ...string) *xorm.EngineGroup

func NewEngineGroup

func NewEngineGroup(dbConf config.DbConfig) (*xorm.EngineGroup, error)

Types

type Provider

type Provider struct{}

func (*Provider) Close

func (p *Provider) Close() error

释放资源

func (*Provider) Provides

func (p *Provider) Provides() []string

func (*Provider) Register

func (p *Provider) Register(args ...interface{}) error

Jump to

Keyboard shortcuts

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