Implement connstr

This commit is contained in:
lash
2025-01-04 09:37:12 +00:00
parent dc1674ec55
commit 2e30739ec9
11 changed files with 227 additions and 65 deletions

View File

@@ -41,9 +41,11 @@ func TestEngine(sessionId string) (engine.Engine, func(), chan bool) {
dbDir := ".test_state"
resourceDir := scriptDir
menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
//menuStorageService := storage.NewMenuStorageService(dbDir, resourceDir)
menuStorageService := storage.NewMenuStorageService(resourceDir)
err := menuStorageService.EnsureDbDir()
//err := menuStorageService.EnsureDbDir()
err := menuStorageService.SetConn(dbDir)
if err != nil {
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)