Skip to content

Commit

Permalink
fix: update db connector
Browse files Browse the repository at this point in the history
  • Loading branch information
Abim authored and Abim committed Mar 11, 2023
1 parent 0c15e35 commit 086014f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/whatsapp/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func InitWhatsAppV2(device *store.Device, jid string) {
dbLog := waLog.Stdout("Database", "DEBUG", true)

// Make sure you add appropriate DB connector imports, e.g. github.com/mattn/go-sqlite3 for SQLite
container, err := sqlstore.New("sqlite3", "file:examplestore.db?_foreign_keys=on", dbLog)
container, err := sqlstore.New("sqlite3", "file:examplestore.db?_foreign_keys=on&cache=shared&mode=rw", dbLog)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 086014f

Please sign in to comment.