Documentation ¶
Index ¶
- Variables
- func GetMssqlDB(conInfo string) *sql.DB
- func GetMysqlDB(conInfo string) *sql.DB
- func InitConnection(driverName string)
- func InitMsSqlConnection() map[string]*sql.DB
- func InitMySqlConnection() map[string]*sql.DB
- func InitPgConnection() map[string]*sql.DB
- func Run(driverName string, tgtDb string, stmt string) (int, []string, []map[string]interface{}, string)
- type SqlExec
- func (sqlExec *SqlExec) Delete() error
- func (sqlExec *SqlExec) Insert() error
- func (sqlExec *SqlExec) QueryWithParams()
- func (sqlExec *SqlExec) QueryWithoutParams() error
- func (sqlExec *SqlExec) ScanRows(rows *sql.Rows) (int, []string, []map[string]interface{})
- func (sqlExec *SqlExec) Update() error
Constants ¶
This section is empty.
Variables ¶
View Source
var SqlCons map[string]map[string]*sql.DB
Functions ¶
func GetMssqlDB ¶ added in v0.72.0
func GetMysqlDB ¶ added in v0.72.0
func InitConnection ¶
func InitConnection(driverName string)
func InitMsSqlConnection ¶ added in v0.72.0
func InitMySqlConnection ¶
Types ¶
type SqlExec ¶
type SqlExec struct { DriverName string TargetDb string Stmt string CmdAffectedCount int RowsHeaders []string CmdResults []map[string]interface{} }
func (*SqlExec) QueryWithParams ¶
func (sqlExec *SqlExec) QueryWithParams()
func (*SqlExec) QueryWithoutParams ¶
Click to show internal directories.
Click to hide internal directories.