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
144
144
// Each iteration of this loop copies 500 database pages from database db to the backup database.
145
145
do {
146
146
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";
148
148
} while(rc == SQLITE_OK || rc == SQLITE_BUSY || rc == SQLITE_LOCKED);
149
149
}
150
150
} // Release allocated resources.
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ int main() {
30
30
31
31
{
32
32
33
- auto con = db.get_sqlite3_connection ();
33
+ auto con = db.connection ();
34
34
35
35
{
36
36
database db2 (con);
You can’t perform that action at this time.
0 commit comments