Add util for ungraceful sql execs

This commit is contained in:
Gabe Kangas 2022-08-02 15:13:52 -07:00
parent 29ec8a9091
commit e65abb6073
No known key found for this signature in database
GPG Key ID: 4345B2060657F330

View File

@ -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)