VSQLite++ 0.3
Loading...
Searching...
No Matches
backup.hpp
Go to the documentation of this file.
1#ifndef GUARD_SQLITE_BACKUP_HPP_INCLUDED
2#define GUARD_SQLITE_BACKUP_HPP_INCLUDED
3
5
14
15struct sqlite3_backup;
16
17namespace sqlite {
18inline namespace v2 {
22 struct backup {
29 backup(connection &conn_to, connection &conn_from);
30 backup(backup const &) = delete;
31 backup &operator=(backup const &) = delete;
32
37
43 bool step(int nPage = -1);
44
49 void finish();
50
51 private:
52 sqlite3 *get_to_handle() const;
53
54 private:
55 sqlite3_backup *m_pBackup;
57 };
58} // namespace v2
59} // namespace sqlite
60#endif // #ifndef GUARD_SQLITE_BACKUP_HPP_INCLUDED
Owning RAII wrapper for sqlite3* handles plus attachment helpers and statement caching.
backup is a class for representing SQLite backup operations An object of this class is not copyable
Definition backup.hpp:22
~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,...
backup & operator=(backup const &)=delete
backup(connection &conn_to, connection &conn_from)
backup constructor
connection & m_conn_to
Definition backup.hpp:56
sqlite3 * get_to_handle() const
backup(backup const &)=delete
sqlite3_backup * m_pBackup
Definition backup.hpp:55
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...