VSQLite++
0.3
Toggle main menu visibility
Loading...
Searching...
No Matches
include
sqlite
backup.hpp
Go to the documentation of this file.
1
#ifndef GUARD_SQLITE_BACKUP_HPP_INCLUDED
2
#define GUARD_SQLITE_BACKUP_HPP_INCLUDED
3
4
#include <
sqlite/connection.hpp
>
5
14
15
struct
sqlite3_backup;
16
17
namespace
sqlite
{
18
inline
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
36
~backup
();
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
;
56
connection
&
m_conn_to
;
57
};
58
}
// namespace v2
59
}
// namespace sqlite
60
#endif
// #ifndef GUARD_SQLITE_BACKUP_HPP_INCLUDED
connection.hpp
Owning RAII wrapper for sqlite3* handles plus attachment helpers and statement caching.
sqlite::v2
Definition
backup.hpp:18
sqlite
Definition
backup.hpp:17
sqlite::backup
backup is a class for representing SQLite backup operations An object of this class is not copyable
Definition
backup.hpp:22
sqlite::v2::backup::~backup
~backup()
backup destructor. The backup operation is automatically finished after the object destructed.
sqlite::v2::backup::step
bool step(int nPage=-1)
Do a backup step.
sqlite::v2::backup::finish
void finish()
Finish the backup operation This is used for flushing current backup operation. After this call,...
sqlite::v2::backup::operator=
backup & operator=(backup const &)=delete
sqlite::v2::backup::backup
backup(connection &conn_to, connection &conn_from)
backup constructor
sqlite::v2::backup::m_conn_to
connection & m_conn_to
Definition
backup.hpp:56
sqlite::v2::backup::get_to_handle
sqlite3 * get_to_handle() const
sqlite::v2::backup::backup
backup(backup const &)=delete
sqlite::v2::backup::m_pBackup
sqlite3_backup * m_pBackup
Definition
backup.hpp:55
sqlite::v2::connection
connection is used to open, close, attach and detach a database. Further it has to be passed to all c...
Definition
connection.hpp:64
Generated by
1.17.0