Add util for ungraceful sql execs

This commit is contained in:
Gabe Kangas 2022-08-02 15:13:52 -07:00
parent eda62a91dc
commit 5d34279862
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA

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)