Make SQLite default for new installations (#1529)

* Make SQLite default for new installations

* if var is not set, return empty string

this allows getStoreEngineFromDatadir to detect json store files

---------

Co-authored-by: Maycon Santos <mlsmaycon@gmail.com>
This commit is contained in:
Yury Gargay
2024-02-20 15:06:32 +01:00
committed by GitHub
parent 51f133fdc6
commit 0fbf72434e
5 changed files with 27 additions and 9 deletions

View File

@ -485,7 +485,11 @@ func (s *SqliteStore) SaveUserLastLogin(accountID, userID string, lastLogin time
// Close is noop in Sqlite
func (s *SqliteStore) Close() error {
return nil
sql, err := s.db.DB()
if err != nil {
return err
}
return sql.Close()
}
// GetStoreEngine returns SqliteStoreEngine