update sqlite
All checks were successful
Build Multi-Platform Binaries / build (push) Successful in 13m17s

This commit is contained in:
Flik
2025-12-25 20:15:31 +08:00
parent 7100362cd7
commit db5bd942d3
8 changed files with 237 additions and 31 deletions

View File

@@ -5,7 +5,7 @@ import (
"encoding/json"
"sync"
_ "github.com/mattn/go-sqlite3"
_ "modernc.org/sqlite"
"github.com/gotunnel/pkg/protocol"
)
@@ -18,7 +18,7 @@ type SQLiteStore struct {
// NewSQLiteStore 创建 SQLite 存储
func NewSQLiteStore(dbPath string) (*SQLiteStore, error) {
db, err := sql.Open("sqlite3", dbPath)
db, err := sql.Open("sqlite", dbPath)
if err != nil {
return nil, err
}