Switch core and cache databases to use sqlite when bbold db is not present
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user