2025-09-10 19:34:49 +05:00
|
|
|
package database
|
|
|
|
|
|
|
|
import (
|
|
|
|
"path/filepath"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (d *database) configureDBPath() error {
|
2025-09-10 20:06:33 +05:00
|
|
|
d.dbPath = filepath.Join(d.app.Fyne().Storage().RootURI().Path(), "database.sqlite3")
|
2025-09-10 19:34:49 +05:00
|
|
|
|
2025-09-10 20:04:19 +05:00
|
|
|
d.logger.Info("Database path configured.", "path", d.dbPath)
|
2025-09-10 19:34:49 +05:00
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|