DBUtil

package
v0.0.0-...-61e7aec Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConnectionInfo

func InitConnectionInfo(uname, dbname, pwd, host string)

初始化链接参数 如果已经初始化 则可以重新设置这个参数

func InsertMap

func InsertMap(sql string, domainList []interface{}) ([]interface{}, error)

func QueryInfo

func QueryInfo(sql string, args ...interface{}) ([]map[string]interface{}, error)

传入查询的sql 返回 结果集组成的map结果

func UpdateMap

func UpdateMap(sql string, domainList []interface{}) (bool, error)

func UseConnection

func UseConnection(point breakthroughPoint) (interface{}, error)

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

自定义异常输出

func (*Error) Error

func (e *Error) Error() string

Jump to

Keyboard shortcuts

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