db

package
v0.0.0-...-e138ea5 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(query string, args ...interface{}) (sql.Result, error)

func Prepare

func Prepare(query string) (*sql.Stmt, error)

func PrepareExt

func PrepareExt(query string, dbType *config.DbType) (*sql.Stmt, error)

func Query

func Query(query string, args ...interface{}) (*sql.Rows, error)

func QueryRow

func QueryRow(query string, args interface{}) (*sql.Row, error)

Types

type Db

type Db struct {
	Handle *sql.DB
}

func GetInstance

func GetInstance() *Db

func GetInstanceByDbSource

func GetInstanceByDbSource(dbType *config.DbType) *Db

Jump to

Keyboard shortcuts

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