more gokrazy work

This commit is contained in:
2023-05-06 01:52:30 -07:00
parent 225399690e
commit 6297b78e2b
5 changed files with 129 additions and 26 deletions

View File

@@ -4,7 +4,7 @@ import (
"database/sql"
"fmt"
_ "github.com/mattn/go-sqlite3"
_ "github.com/glebarez/go-sqlite"
)
type Executor interface {
@@ -34,7 +34,7 @@ func (db *DB) Connect() (err error) {
if db.db != nil {
return nil
}
db.db, err = sql.Open("sqlite3", db.path)
db.db, err = sql.Open("sqlite", db.path)
return err
}