File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Take this example on how to deal with a database backup using SQLITEs own functi
144144 // Each iteration of this loop copies 500 database pages from database db to the backup database.
145145 do {
146146 rc = sqlite3_backup_step(state.get(), 500);
147- std::cout << "Remaining " << sqlite3_backup_remaining(pBackup) << "/" << sqlite3_backup_pagecount(pBackup ) << "\n";
147+ std::cout << "Remaining " << sqlite3_backup_remaining(state.get()) << "/" << sqlite3_backup_pagecount(state.get() ) << "\n";
148148 } while(rc == SQLITE_OK || rc == SQLITE_BUSY || rc == SQLITE_LOCKED);
149149 }
150150 } // Release allocated resources.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ int main() {
3030
3131 {
3232
33- auto con = db.get_sqlite3_connection ();
33+ auto con = db.connection ();
3434
3535 {
3636 database db2 (con);
You can’t perform that action at this time.
0 commit comments