Versions in this module Expand all Collapse all v0 v0.0.1 Aug 5, 2018 Changes in this version + var SqlDB *sql.DB + func Exec(query string, args ...interface{}) sql.Result + func InitDB(username string, password string, port string, ip string, databaseName string) + func Query(query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows) + func QueryWithConnection(con string, query string, args ...interface{}) ([]map[string]interface{}, *sql.Rows) + func SetColVarType(colVar *[]interface{}, i int, typeName string) + func SetResultValue(result *map[string]interface{}, index string, colVar interface{}, ...) + func WithTransaction(fn TxFn) (err error, res map[string]interface{}) + type SqlTxStruct struct + Tx *sql.Tx + func BeginTransactions() *SqlTxStruct + func BeginTransactionsByLevel() *SqlTxStruct + func (SqlTx *SqlTxStruct) Exec(query string, args ...interface{}) (sql.Result, error) + func (SqlTx *SqlTxStruct) Query(query string, args ...interface{}) ([]map[string]interface{}, error) + type TxFn func(*SqlTxStruct) (error, map[string]interface{})