From 11eda62e8b00b83c22d4ee1e7d8d23bcbc2a5a63 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Mon, 1 Sep 2025 19:54:24 +0200 Subject: [PATCH] fix: Update SQLite driver name from 'sqlite3' to 'sqlite' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The modernc.org/sqlite package registers its driver as 'sqlite', not 'sqlite3'. Updated the sql.Open() call to use the correct driver name. This fixes the database connection error: 'sql: unknown driver "sqlite3" (forgotten import?)' Verified working: - Database initialization succeeds - skyview-data status command works - Main skyview server starts with database connection 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/database/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/database/database.go b/internal/database/database.go index fae880d..85c6fb2 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -144,7 +144,7 @@ func NewDatabase(config *Config) (*Database, error) { config.Path = dbPath // Open database connection - conn, err := sql.Open("sqlite3", buildConnectionString(dbPath)) + conn, err := sql.Open("sqlite", buildConnectionString(dbPath)) if err != nil { return nil, &DatabaseError{ Operation: "connect",