db

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *sql.DB

Client 默认数据库实例

Functions

func Conn added in v0.1.6

func Conn() *sql.DB

Conn 用配置文件的默认参数连接数据库

func Connect added in v0.1.6

func Connect(prePath string) *sql.DB

Connect 用配置文件连接数据库

func ConnectDB

func ConnectDB(dataSourceName string) (*sql.DB, error)

ConnectDB 用连接字符串连接数据库

func Init added in v0.1.12

func Init()

Init 默认初始化

Types

This section is empty.

Jump to

Keyboard shortcuts

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