db

package
v0.0.0-...-ae94dc8 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnURL

func GetConnURL(info *parse.DBConfigInfo) (url string)

获取数据库连接的url true:master主库

func MasterEngine

func MasterEngine() *xorm.Engine

主库,单例

func SlaveEngine

func SlaveEngine() *xorm.Engine

从库,单例

Types

This section is empty.

Jump to

Keyboard shortcuts

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