backup is a class for representing SQLite backup operations An object of this class is not copyable
More...
#include <backup.hpp>
|
| | backup (connection &conn_to, connection &conn_from) |
| | backup constructor
|
| | backup (backup const &)=delete |
| backup & | operator= (backup const &)=delete |
| | ~backup () |
| | backup destructor. The backup operation is automatically finished after the object destructed.
|
| bool | step (int nPage=-1) |
| | Do a backup step.
|
| void | finish () |
| | Finish the backup operation This is used for flushing current backup operation. After this call, the backup object should not be used anymore.
|
backup is a class for representing SQLite backup operations An object of this class is not copyable
Definition at line 22 of file backup.hpp.
◆ backup() [1/2]
backup constructor
- Parameters
-
| conn_to | takes a reference to the connection object of the destination database |
| conn_from | takes a reference to the connection object of the source database |
Referenced by backup(), and operator=().
◆ backup() [2/2]
| sqlite::v2::backup::backup |
( |
backup const & | | ) |
|
|
delete |
◆ ~backup()
| sqlite::v2::backup::~backup |
( |
| ) |
|
backup destructor. The backup operation is automatically finished after the object destructed.
◆ finish()
| void sqlite::v2::backup::finish |
( |
| ) |
|
Finish the backup operation This is used for flushing current backup operation. After this call, the backup object should not be used anymore.
◆ get_to_handle()
| sqlite3 * sqlite::v2::backup::get_to_handle |
( |
| ) |
const |
|
private |
◆ operator=()
◆ step()
| bool sqlite::v2::backup::step |
( |
int | nPage = -1 | ) |
|
Do a backup step.
- Parameters
-
| nPage | the number of pages to backup in this step. If a negative integer is given, all pages are backuped. If this parameter is omitted, -1 is used. |
◆ m_conn_to
◆ m_pBackup
| sqlite3_backup* sqlite::v2::backup::m_pBackup |
|
private |
The documentation for this struct was generated from the following file: