mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-06-08 20:03:52 +02:00
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:
@@ -6,7 +6,7 @@ import (
|
||||
"os"
|
||||
|
||||
// import sqlite3 driver
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
_ "modernc.org/sqlite"
|
||||
|
||||
"github.com/moond4rk/hackbrowserdata/crypto"
|
||||
"github.com/moond4rk/hackbrowserdata/item"
|
||||
@@ -29,7 +29,7 @@ const (
|
||||
)
|
||||
|
||||
func (c *ChromiumCreditCard) Parse(masterKey []byte) error {
|
||||
db, err := sql.Open("sqlite3", item.ChromiumCreditCard.TempFilename())
|
||||
db, err := sql.Open("sqlite", item.ChromiumCreditCard.TempFilename())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -85,7 +85,7 @@ func (c *ChromiumCreditCard) Len() int {
|
||||
type YandexCreditCard []card
|
||||
|
||||
func (c *YandexCreditCard) Parse(masterKey []byte) error {
|
||||
db, err := sql.Open("sqlite3", item.YandexCreditCard.TempFilename())
|
||||
db, err := sql.Open("sqlite", item.YandexCreditCard.TempFilename())
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user