yahoo / squidb

SquiDB is a SQLite database library for Android and iOS
https://github.com/yahoo/squidb/wiki
Apache License 2.0
1.31k stars 132 forks source link

Doing DB writes during open/upgrade hooks can trigger data change notifiers #154

Closed sbosley closed 8 years ago

sbosley commented 8 years ago

In many cases this wouldn't be a problem, but it could be in some use cases and it doesn't really make sense for data change notifiers to be watching before the db has even opened anyways. Clients can work around any issues right now by using setDataChangedNotificationsEnabled during these hooks, but we should consider how to best handle this at the SquidDatabase level too.