db

package
v0.0.0-...-0bfeff7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbConn

type DbConn struct {
	Db *sql.DB
}

func InitDbConn

func InitDbConn() (*DbConn, error)

func (*DbConn) Delete

func (c *DbConn) Delete(sql string, args ...interface{}) (rowsAffected int64, err error)

func (*DbConn) Insert

func (c *DbConn) Insert(sql string, args ...interface{}) (lastInsertId int64, err error)

func (*DbConn) Select

func (c *DbConn) Select(sql string, args ...interface{}) (results []map[string]string, err error)

func (*DbConn) Update

func (c *DbConn) Update(sql string, args ...interface{}) (rowsAffected int64, err error)

Jump to

Keyboard shortcuts

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