diff --git a/pkg/database/database.go b/pkg/database/database.go index a7f4b86..d3ea542 100644 --- a/pkg/database/database.go +++ b/pkg/database/database.go @@ -47,7 +47,8 @@ func defaultDBPath() (string, error) { return filepath.Join(dataDir, "mining.db"), nil } -// Initialize opens the database connection and creates tables +// Initialize opens the SQLite database and creates all required tables. +// database.Initialize(database.Config{Enabled: true, Path: "/data/mining.db", RetentionDays: 30}) func Initialize(cfg Config) error { databaseMutex.Lock() defer databaseMutex.Unlock()