mirror of
https://github.com/Fluffy-Bean/TastyBites.git
synced 2024-12-28 02:16:07 +00:00
Messed up imports
This commit is contained in:
parent
677b4277a6
commit
795144aaa0
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue