Documentation ¶
Index ¶
- Variables
- type Postgresql
- func (db *Postgresql) Exec(query string, args ...interface{}) sql.Result
- func (db *Postgresql) ExecWithConnection(con string, query string, args ...interface{}) sql.Result
- func (db *Postgresql) GetName() string
- func (db *Postgresql) InitDB(cfgList map[string]config.Database)
- func (db *Postgresql) Query(query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows)
- func (db *Postgresql) QueryWithConnection(con string, query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB = Postgresql{ DbList: map[string]*sql.DB{}, }
Functions ¶
This section is empty.
Types ¶
type Postgresql ¶
func GetPostgresqlDB ¶
func GetPostgresqlDB() *Postgresql
func (*Postgresql) ExecWithConnection ¶
func (db *Postgresql) ExecWithConnection(con string, query string, args ...interface{}) sql.Result
func (*Postgresql) GetName ¶
func (db *Postgresql) GetName() string
func (*Postgresql) Query ¶
func (db *Postgresql) Query(query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows)
func (*Postgresql) QueryWithConnection ¶
Click to show internal directories.
Click to hide internal directories.