diff --git a/database/database.go b/database/database.go index ef0fef8..9b73d5f 100644 --- a/database/database.go +++ b/database/database.go @@ -2,10 +2,9 @@ package database import ( "database/sql" - "github.com/mattn/go-sqlite3" "log" - _ "github.com/mattn/go-sqlite3" + "github.com/mattn/go-sqlite3" ) var Conn *sql.DB @@ -13,12 +12,7 @@ var Conn *sql.DB func Open() { var err error - sql.Register("sqlite3_with_extensions", - &sqlite3.SQLiteDriver{ - Extensions: []string{ - "sqlite3_mod_regexp", - }, - }) + sql.Register("sqlite3_with_extensions", &sqlite3.SQLiteDriver{}) Conn, err = sql.Open("sqlite3", "tastybites.db?_journal_mode=WAL") if err != nil {