eventstore: add boltdb support to cli.

This commit is contained in:
fiatjaf
2025-08-05 23:40:23 -03:00
parent 414e836eaa
commit 4a7e893b80
2 changed files with 7 additions and 11 deletions
+2 -9
View File
@@ -28,7 +28,8 @@ func detect(dir string) (string, error) {
return "", err
}
if !f.IsDir() {
return "", fmt.Errorf("unknown db format")
// only boltdb is a file for now
return "boltdb", nil
}
entries, err := os.ReadDir(dir)
@@ -49,14 +50,6 @@ func detect(dir string) (string, error) {
}
}
}
// for _, entry := range entries {
// if strings.HasSuffix(entry.Name(), ".mdb") {
// return "lmdb", nil
// }
// if strings.HasSuffix(entry.Name(), ".vlog") {
// return "badger", nil
// }
// }
return "", fmt.Errorf("undetected")
}