Add util for ungraceful sql execs
This commit is contained in:
parent
eda62a91dc
commit
5d34279862
@ -6,8 +6,8 @@ import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
// mustExec will execute a SQL statement on a provided database instance.
|
||||
func mustExec(s string, db *sql.DB) {
|
||||
// MustExec will execute a SQL statement on a provided database instance.
|
||||
func MustExec(s string, db *sql.DB) {
|
||||
stmt, err := db.Prepare(s)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
|
Loading…
Reference in New Issue
Block a user