Details
- Reviewers
bartek
Tested later in the stack, existing tables (e.g. olm_persist_account) are not overwritten during restore
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.cpp | ||
---|---|---|
3313 ↗ | (On Diff #47622) | We need to use this only on not-encrypted databases, see next diff in the stack |
3317 ↗ | (On Diff #47622) | We want OR IGNORE statement to skip duplicated primary keys, the example is a thread with Ashoat, which is created for each user (we won't include thin thread data in backup, but we do now, so without this each copy statement could fail) |
native/cpp/CommonCpp/DatabaseManagers/SQLiteQueryExecutor.h | ||
58 ↗ | (On Diff #47622) | We might want to have a custom copy method (by specifying fields), e.g. for messages where we have one generated column |
Don't we want this method to take a vector of tables to copy? Looking at D14519, I see you're running this in a loop, so the ATTACH DATABASE ..., DETACH statements are repeated for each table
We follow web approach so this comment is not needed anymore