refactor: switch from modernc/sqlite back to mattn/go-sqlite3 (CGo)

This commit is contained in:
root
2026-07-14 11:43:59 +08:00
parent c7e22fbe30
commit fa91b24460
4 changed files with 43 additions and 19 deletions

View File

@ -11,7 +11,7 @@ import (
"time"
"gitcode.com/JianFeeeee/HomeAgent/pkg/types"
_ "modernc.org/sqlite"
_ "github.com/mattn/go-sqlite3"
)
type ConfigDef struct {
@ -37,7 +37,7 @@ func NewConfigRegistry(dbPath string) *ConfigRegistry {
if dbPath == "" {
dbPath = ":memory:"
}
db, err := sql.Open("sqlite", dbPath)
db, err := sql.Open("sqlite3", dbPath)
if err != nil {
panic(fmt.Sprintf("open config db: %v", err))
}