Execute backup step with a given number of source pages to be copied
| 50 | |
| 51 | // Execute backup step with a given number of source pages to be copied |
| 52 | int Backup::executeStep(const int aNumPage /* = -1 */) |
| 53 | { |
| 54 | const int res = sqlite3_backup_step(mpSQLiteBackup.get(), aNumPage); |
| 55 | if (SQLITE_OK != res && SQLITE_DONE != res && SQLITE_BUSY != res && SQLITE_LOCKED != res) |
| 56 | { |
| 57 | throw SQLite::Exception(sqlite3_errstr(res), res); |
| 58 | } |
| 59 | return res; |
| 60 | } |
| 61 | |
| 62 | // Get the number of remaining source pages to be copied in this backup process |
| 63 | int Backup::getRemainingPageCount() const |
no test coverage detected