dev: Remove CGO go-sqlite3 with pure go driver (#292)

* chore: Resize logo and update browser support in READMEs (#284)

* chore: Resize logo and update browser support in READMEs

* docs: Update Coverage Status badge URL

* chore: add typos check linter in github actions (#285)

* refactor: Disable JSON handling in logger/logger.go.

* chore: Standardize spelling and add typos check workflows.

* refactor: Update SQLite driver import for browsing data package.

* refactor: Refactor browsing data package to use SQLite driver instead of SQLite3.

* docs: Add contribution guidelines to README file (#289)

* chore: Refactor file and directory names for improved organization and consistency
This commit is contained in:
ᴍᴏᴏɴD4ʀᴋ
2024-01-19 15:45:24 +08:00
committed by GitHub
parent cd2b1964c4
commit baa0e09ad2
14 changed files with 101 additions and 28 deletions
+2 -3
View File
@@ -7,9 +7,8 @@ import (
"sort"
"time"
// import sqlite3 driver
_ "github.com/mattn/go-sqlite3"
"github.com/tidwall/gjson"
_ "modernc.org/sqlite" // import sqlite3 driver
"github.com/moond4rk/hackbrowserdata/item"
"github.com/moond4rk/hackbrowserdata/utils/fileutil"
@@ -94,7 +93,7 @@ const (
)
func (f *FirefoxBookmark) Parse(_ []byte) error {
db, err := sql.Open("sqlite3", item.FirefoxBookmark.TempFilename())
db, err := sql.Open("sqlite", item.FirefoxBookmark.TempFilename())
if err != nil {
return err
}