fix: Update SQLite driver name from 'sqlite3' to 'sqlite'
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 <noreply@anthropic.com>
This commit is contained in:
parent
41c7758f69
commit
11eda62e8b
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ func NewDatabase(config *Config) (*Database, error) {
|
||||||
config.Path = dbPath
|
config.Path = dbPath
|
||||||
|
|
||||||
// Open database connection
|
// Open database connection
|
||||||
conn, err := sql.Open("sqlite3", buildConnectionString(dbPath))
|
conn, err := sql.Open("sqlite", buildConnectionString(dbPath))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, &DatabaseError{
|
return nil, &DatabaseError{
|
||||||
Operation: "connect",
|
Operation: "connect",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue