Experimental port to CGO-free modernc.org/sqlite, no more WSL
This commit is contained in:
parent
2409598c6e
commit
fb67825e29
4 changed files with 54 additions and 53 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
"ttime/internal/types"
|
||||
|
||||
"github.com/jmoiron/sqlx"
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
_ "modernc.org/sqlite"
|
||||
)
|
||||
|
||||
// Interface for the database
|
||||
|
@ -74,7 +74,7 @@ WHERE
|
|||
// DbConnect connects to the database
|
||||
func DbConnect(dbpath string) Database {
|
||||
// Open the database
|
||||
db, err := sqlx.Connect("sqlite3", dbpath)
|
||||
db, err := sqlx.Connect("sqlite", dbpath)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue