eventstore: add boltdb support to cli.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user