chore: switch driver one more time ncruses -> modernc
Some checks failed
build / build (push) Has been cancelled

This commit is contained in:
d3m0k1d
2026-01-21 19:15:35 +03:00
parent 11453bd0d9
commit 4e8dc51ac8
4 changed files with 65 additions and 15 deletions

View File

@@ -3,8 +3,7 @@ package storage
import (
"database/sql"
"github.com/d3m0k1d/BanForge/internal/logger"
_ "github.com/ncruces/go-sqlite3/driver"
_ "github.com/ncruces/go-sqlite3/embed"
"modernc.org/sqlite"
"os"
"path/filepath"
"testing"
@@ -18,7 +17,7 @@ func createTestDB(t *testing.T) *sql.DB {
}
filePath := filepath.Join(tmpDir, "test.db")
db, err := sql.Open("sqlite3", filePath)
db, err := sql.Open("sqlite", filePath)
if err != nil {
t.Fatal(err)
}