Skip to content
Snippets Groups Projects
Verified Commit 066862ff authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

fix: open SQLite file in /tmp directory

parent 02423882
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ func openDB(cfg DBConfig) (db *gorm.DB, err error) {
return nil, errors.New("failed to connect to database: " + err.Error())
}
case "sqlite3":
if db, err = gorm.Open(sqlite.Open(":memory:"), &gorm.Config{}); err != nil {
if db, err = gorm.Open(sqlite.Open("/tmp/db.sqlite3"), &gorm.Config{}); err != nil {
return nil, errors.New("failed to open database: " + err.Error())
}
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment