fix(server): e2e tests fails because db interface is updated

This commit is contained in:
hexxa 2022-10-08 15:38:39 +08:00 committed by Hexxa
parent 2b50c84273
commit 1b39b7ebf7
4 changed files with 13 additions and 8 deletions

View file

@ -20,7 +20,7 @@ type SQLite struct {
}
func NewSQLite(dbPath string) (*SQLite, error) {
db, err := sql.Open("sqlite3", fmt.Sprintf("%s?_sync=FULL&_locking=EXCLUSIVE", dbPath))
db, err := sql.Open("sqlite3", fmt.Sprintf("%s?_sync=FULL&_vacuum=incremental", dbPath))
if err != nil {
return nil, err
}