postgresql

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB = Postgresql{
	SqlDBmap: map[string]*sql.DB{},
}

Functions

This section is empty.

Types

type Postgresql

type Postgresql struct {
	SqlDBmap map[string]*sql.DB
	Once     sync.Once
}

func GetPostgresqlDB

func GetPostgresqlDB() *Postgresql

func (*Postgresql) Exec

func (db *Postgresql) Exec(query string, args ...interface{}) sql.Result

func (*Postgresql) InitDB

func (db *Postgresql) InitDB(cfgList map[string]config.Database)

func (*Postgresql) Query

func (db *Postgresql) Query(query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows)

Jump to

Keyboard shortcuts

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