Skip to content

Commit

Permalink
change dbutil function visiable
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpingcoder committed Jul 4, 2021
1 parent 5560a01 commit 699f5d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/dbutil/DBUtil.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func QueryMap(dbname string, sql string, args ...interface{}) []map[string]inter
return resultList
}

func executeSQL(dbname string, sql string, args ...interface{}) bool {
func ExecuteSQL(dbname string, sql string, args ...interface{}) bool {
stmt, err := dbs[dbname].Prepare(sql)
if err != nil {
logutil.Error(nil, err)
Expand All @@ -174,7 +174,7 @@ func executeSQL(dbname string, sql string, args ...interface{}) bool {
return true
}

func executeBatchSQL(dbname string, sqls []string) bool {
func ExecuteBatchSQL(dbname string, sqls []string) bool {
tx, err := dbs[dbname].Begin()
if err != nil {
logutil.Error(nil, err)
Expand Down

0 comments on commit 699f5d6

Please sign in to comment.