Switch core and cache databases to use sqlite when bbold db is not present

This commit is contained in:
Daniel
2025-02-25 11:43:29 +01:00
parent c742c7dfd1
commit 90ead7d5e5
2 changed files with 26 additions and 13 deletions

View File

@@ -36,6 +36,11 @@ func SetDatabaseLocation(dirStructureRoot *utils.DirStructure) {
}
}
// GetDatabaseLocation returns the initialized database location.
func GetDatabaseLocation() string {
return databaseStructureRoot.Path
}
func prep() error {
SetDatabaseLocation(dataroot.Root())
if databaseStructureRoot == nil {